I want the header of this website http://nelsonnaibert.com.br/ to be at the very top of the page. I've tried everything I could, looked for answers in every forum but nothing's working.
Is there anyone who could help me with that?
Thanks a lot!
| SitePoint Sponsor |
I want the header of this website http://nelsonnaibert.com.br/ to be at the very top of the page. I've tried everything I could, looked for answers in every forum but nothing's working.
Is there anyone who could help me with that?
Thanks a lot!


Hi laurabd. Welcome to the forums.
The problem is here:
That margin is pushing out the top of the container, because of "margin collapse".Code:.header h1, .header h5 { font-size: 48px; text-transform: uppercase; margin: 10px 0 0 0; }
There are various ways to stop this happening. The easiest thing in this case would be simply to remove that top margin on the <h1>.
Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.
Seems that I've tried everything but that. Thanks a lot, ralph.m!


You're welcome.![]()
Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.
Bookmarks