Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Horizontal Line acting strange in different browsers

I have a horizontal line on a website but trying to make it fluid and responsive. I did manage to make it responsive; however, on my internet explorer my "margin-left" works like I wanted to, but on my google chrome browser it behaves differently or in some other units. What's causing this?

Chris Andruszko
Chris Andruszko
18,392 Points

Hard to say what's going wrong without seeing your code. And I'm not sure what you mean by the margin-left not working the way you want.

I don't know if this has anything to do with your situation, but many browsers automatically have a left margin with a value greater than 0. In order to get rid of that, I always put in the following code at the top of my CSS.

html {
     margin-left: 0px;

But again, I don't know if that will solve your problem.