zenthoef
12-04-2008, 10:31 PM
I found an apparent bug in IE 7 that is apparently displaying a bottom margin incorrectly for my webpage.
I am using div's and css to format everything. The bug is that IE7 is inserting 5 extra pixels on the bottom margin of an image. The image is actually an image rollover that uses javascript to function.
Is the best way to deal with this to put some code in to say "if the browser is IE7 then do a margin with -5 pixels"? Or is there a better way to do this? Using a margin of -5px gets rid of the extra margin, but destorys my border...
Thanks in advance.
I am using div's and css to format everything. The bug is that IE7 is inserting 5 extra pixels on the bottom margin of an image. The image is actually an image rollover that uses javascript to function.
Is the best way to deal with this to put some code in to say "if the browser is IE7 then do a margin with -5 pixels"? Or is there a better way to do this? Using a margin of -5px gets rid of the extra margin, but destorys my border...
Thanks in advance.