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
Joshua Nolen
653 PointsI'm working on "How to make a website" track and i have a question about my header positioning
here is my css code for trying to reposition my header in my site -
header {
float: left;
margin: 0 0 30px 0;
padding: 5px 0 0 0;
width: 100%;
}
...I've put the code in, saved my workspace and refreshed multiple times and the white empty space is not moving from the top of the header as it should be.
I checked my "index.html" code as well and there are no errors in the heading element.
2 Answers
Joshua Nolen
653 PointsNo, wasn't my padding. I just had my code wrong in other parts of my CSS..got it worked out now, thanks!
Jon Benson
12,168 PointsJoshua,
Surround your code with three backticks, left of the numeral 1 (see the Markdown Cheatsheet below). I see that you have 5px of padding at the top of your header, could that be what you are seeing?