height gör sidan olika i IE/FF
#Header {
margin:80px 50px 10px 0px;
padding:10px 0px 40px 10px;
/* For IE5/Win's benefit height = [correct height] + [top padding] + [top and bottom border widths] */
height:33px; /* 14px + 17px + 2px = 33px */
border-style:solid;
border-color:#ff9933;
border-width:0px; /* top and bottom borders: 1px; left and right borders: 0px */
line-height:11px;
background-color:#000000;
max-width:635px;
width:635px;
/* Here is the ugly brilliant hack that protects IE5/Win from its own stupidity.
Thanks to Tantek Celik for the hack and to Eric Costello for publicizing it.
IE5/Win incorrectly parses the "\"}"" value, prematurely closing the style
declaration. The incorrect IE5/Win value is above, while the correct value is
below. See http://glish.com/css/hacks.asp for details. */
voice-family: "\"}\"";
voice-family:inherit;
height:14px; /* the correct height */
}
/* I've heard this called the "be nice t. o Opera 5" rule. Basically, it feeds correct
length values to user agents that exhibit the parsing error exploited above yet get
the CSS box model right and understand the CSS2 parent-child selector. ALWAYS include
a "be nice to Opera 5" rule every time you use the Tantek Celik hack (above). */
Har en sida där IE visar en div annat i höjjd än FF.
Spelar ingen roll vad jag ändrar "height:14px; /* the correct height */" till i IE, i FF så ändras höjjden.
I mitt fall verkar det vara bättre att sätta höjden på 40px så blev höjden lika som i IE.
Men hur kommer det sig från första början att IE inte ens reagerar på height komandot?