pardicity3
02-04-2004, 03:06 AM
I've recently come across an issue where internet explorer is doubling the padding value of a <div>. The odd thing is that this only happens in one of the many instances I use padding.
The site is at http://www.nd.edu/~mking5/theshow/ and the padding issue has to do with the space between the line dividing the sub navigation and the first heading of the right-hand column (directly above where it says "Bands Are Posted"). If you look at the page in Mozilla or Opera (I use v7), the space should be 10px, but in IE6 it appears to be 20px.
I originally thought IE was just starting out with 10px of space and it was really only adding another 10px. But if I set the padding-top value to 0, both IE and Mozilla (and opera for that matter) start from the same position.
I've tested this problem with all sorts of values and IE always doubles them (except 0, of course). I don't know if anyone has experienced this problem before?
CSS can be found at http://www.nd.edu/~mking5/theshow/style.css . The div I add padding to is #content.
edit: Oh yeah, thanks for ignoring the slightly ugly code! :p
The site is at http://www.nd.edu/~mking5/theshow/ and the padding issue has to do with the space between the line dividing the sub navigation and the first heading of the right-hand column (directly above where it says "Bands Are Posted"). If you look at the page in Mozilla or Opera (I use v7), the space should be 10px, but in IE6 it appears to be 20px.
I originally thought IE was just starting out with 10px of space and it was really only adding another 10px. But if I set the padding-top value to 0, both IE and Mozilla (and opera for that matter) start from the same position.
I've tested this problem with all sorts of values and IE always doubles them (except 0, of course). I don't know if anyone has experienced this problem before?
CSS can be found at http://www.nd.edu/~mking5/theshow/style.css . The div I add padding to is #content.
edit: Oh yeah, thanks for ignoring the slightly ugly code! :p