<h1> header tags display differently in IE7 and Firefox
This is a simple one, but still rather frustrating.
If you use the <h1> tag, you'll notice that it display differently in different browsers. You might think it's just the font-size, but if you customize h1 in css, you'll find that the space above and below the text inside the <h1> tags is larger in Firefox than it is in IE7.
It's an easy, if unintuitive fix... specify the margins.
The Solution:
h1
{
font-size: large;
margin-top: 0;
margin-bottom: 1em;
}Labels: css, formatting






0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home