View Single Post
Old 06-18-2004, 08:37 AM   #7 (permalink)
SinisterMotives
Junkie
 
I used to think that Mozilla wasn't rendering border and padding properties correctly myself, but upon reading the W3C spec, I found that it is Internet Explorer, not Mozilla, that implements them incorrectly. The border and padding dimensions are added to an element's width or height; they are not applied within the specified width or height. My workaround for this is to simply leave a DIV's padding at 0px and set its left and top properties to get the desired spacing between it and adjacent elements. This results in a layout that looks the same in both browsers.
SinisterMotives 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