That's an odd CSS bug alright. At first, I thought the logo was overlapping and cutting it off, but I see you've got a good 10px between the logo and the
heading.
Code:
h1 {
font-size: 14px;
background: #3080cb;
height: 17px;
width: 470px;
text-indent: 5px;
margin: 0 0 5px 0;
color: #fff;
padding: 0;
}
Ok, a couple of things. Generally speaking, you shouldn't use pixels as a unit for specifying font sizes, because it creates accessibility issues when the end user tries to resize your text. Use points or EM instead. Second, why not get rid of the height definition all together and give it a 2-3px top and bottom padding instead? That should solve your problem and pretty well look identical.
If, on the other hand, you do leave the
heading at a fixed height, then you also need to make the line-height identical if you want the text to peroperly align vertically, and again, use something other than pixels to prevent resizing issues.
As for the
heading tags, it might help to think of it like an outline....
H1 - main topic of the page
H2 - sub-topics or sections
H3 - further sections/sub-topics within your H2
tags
Depending on how many "levels" deep I need to go with my content, I'll then usually go on to use H# (whatever's left) as headings for main sections of the site navigation, etc. Not sure if that's ncessarily best practice, though.
Bookmarks