Forum Moderators: not2easy
h2 {
margin: 0px;
padding: 0px;
color: #021d4d;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
font-size: 1.5em;
font-weight: bold;
line-height: 125%;
}
Can someone help me figure out what the problem is?
Regarding shorthand optimisation, here’s your code but smaller:
h2 {
margin: 0;
padding: 0;
color: #021d4d;
font: bold 1.5em/1.25 Arial, Helvetica, sans-serif;
text-align: left;
} Values of 0 are the same across al units so a unit suffix isn’t needed.
Really confused, sometimes when I actually reload the page in FF it comes out just the way it should at other times refreshing doesn't matter
The fact that it works sometimes and not others is odd. If you've got extensions installed have you tried running Firefox in safe mode [kb.mozillazine.org] to see if it's a problem with those?
I have just tried the safe mode (which I did not know about so thanks once again) but the page still shows wrong colors for the h1, h2,...etc tags and I believe the fonts are wrong also. It seems to be setting the font sizes, line-height and weight correctly though which makes me even more confused. It's a shame that I can't actually post a link here to show you what I mean and also see if it is something with my browser.
Any other hints? I have told my wife to view it tomorrow from her work to see if it is something wrong with my FF. I will also remove everything in the CSS and only leave the h2 tag and see if the h2 come out right and report back.