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 Styling Web Pages and Navigation Build Navigation with Unordered Lists

so not working the header tag does not have class or id to run the css ??

Text is all out of place

Tom Checkley
Tom Checkley
25,165 Points

could you put you're code up so we can see whats happening?

header {
  float:left;
  margin:0 0 30px 0;
  padding: 0 ;
  width: 100%;
}

Problem of code with the navigation part

Hi Paulo,

have you managed to get to the bottom of this ?

Craig

PS. I hope you don't mind I added some markdown to your comment for a little easier reading :) for tips on markdown have a quick read of the markdown cheatsheet links are available below comments and answers wen typing them :)

1 Answer

You can style the html element directly by stating its name in the css without anything in front of it. That is my preferred method of styling so I have a consistent across my page. I use classes then IDs for more specific styling issues.