View Single Post
Old 11-23-2004, 05:10 AM   #5 (permalink)
WillyPete
Addict
 
Cool, glad it helped.

I didn't have my magazine with me to give you this, but saw something about the boxmodel hack in Issue 14 Practical webpages for IE5.5 and the xml problem for IE6+.

They mention a hack on this site:
http://www.tantek.com/map.html

And the hack:
http://www.tantek.com/CSS/Examples/boxmodelhack.html

What it is, is IE5.5 places padding on the inside of every html element's containing box, compliant browsers put it outside too.
Thr4, a 200 px wide element with 20 px of padding takes up 20 + 200 + 20 px of space in compliant browsers but just 200px in IE 5.5.

You can use the following code to check for browser and then run the applicable CSS:

HTML Code:
.column {
padding: 20px;
width: 240px;
voice-family: "\"}\"";
voice-family:inherit;
width:200px;
}
WillyPete is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62