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

CSS How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

Riki Adams
Riki Adams
2,631 Points

No margin to the left of logo

I have just adjusted the logo for min-width: 660px. Here is what I have #logo { float: left; margin-right: 5%; text-align: left; width: 45%; } But my name and subtitle are still touching the left of the window and it seems like there is no margin at all.

4 Answers

Austin Barber
Austin Barber
2,015 Points

Try margin-left: 5%, that should do it.

Austin Barber
Austin Barber
2,015 Points

Try margin-left: 5%, that should do it.

Austin Barber
Austin Barber
2,015 Points

Yeesh, did not mean to post that twice.

Aaron Graham
Aaron Graham
18,033 Points

It looks like there is no margin at all on the left. Try adding either some padding-left or some margin-left. You could also try changing

margin-right: 5%;

to

margin: 0 5%;

that will give you even margins on the left and right.