Why does the HTML5 DOCTYPE mess with my padding?
Posted
by Dakota
on Stack Overflow
See other posts from Stack Overflow
or by Dakota
Published on 2010-06-09T04:15:08Z
Indexed on
2010/06/09
4:22 UTC
Read the original article
Hit count: 248
I have an html5 page with a navbar. Completely scratch coded. I just recently added a doctype to the item, and now I’m getting extra space under my navbar. If I remove the doctype declaration, it goes back to normal. I have completely reset padding, margins, etc. on everything, and cut it down to the a small amount of code that illustrates the issue.
The page can be seen at http://hackthetruth.org/webdesign/broken
Does anyone know why declaring the doctype is messing with the height of a div?
© Stack Overflow or respective owner