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

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

Ivan Monge
Ivan Monge
3,327 Points

My #logo does not float to the left

I dont seem to get my #logo to float to the left, it always keeps itself aligned in the middle. https://teamtreehouse.com/workspaces/12872832#

Ivan Monge
Ivan Monge
3,327 Points

dont worry, found the error. Space between # and logo :D

can you share your code?

Youssef Azaaz
Youssef Azaaz
2,647 Points

share the code please.

Poul Larsen
Poul Larsen
5,902 Points

If you don't know what went wrong with your code you can always compare it to the teachers note zip file in the download section under the video. Here is a link: http://treehouse-code-samples.s3.amazonaws.com/HowToMakeAWebsite/HowToMakeAWebsite-Stage8-Video4.zip

1 Answer

Poul Larsen
Poul Larsen
5,902 Points

main.css

#logo {
  text-align: center;
  margin: 0;
}

responsive.css

#logo {
  float: left;
  margin-left: 5%;
  text-align: left;
  width: 45%;
}