bobinindia Posted June 10, 2008 Share Posted June 10, 2008 I have a div element that positions correctly in all browsers except IE. This seems to be a bug. Anyone know a fix? CSS below: div.boldy { position: absolute; top:320px; left:550px; } Link to comment https://forums.phpfreaks.com/topic/109547-absolute-position-ie-6/ Share on other sites More sharing options...
calabiyau Posted June 10, 2008 Share Posted June 10, 2008 Would need to see much more code than this. I have always found position: absolute to be very cross browser reliable, so the problem must lie elsewhere. Link to comment https://forums.phpfreaks.com/topic/109547-absolute-position-ie-6/#findComment-562555 Share on other sites More sharing options...
TheFilmGod Posted June 11, 2008 Share Posted June 11, 2008 I have a div element that positions correctly in all browsers except IE. This seems to be a bug. Anyone know a fix? CSS below: div.boldy { position: absolute; top:320px; left:550px; } The problem lays in IE 6's "rounding" calculations. For it to correctly align divs it first needs to "calculate" pixel dimensions except sometimes it "rounds" (incorrectly). Solution: Make sure the parent div "position: relative" has an even number as the width/height. Link to comment https://forums.phpfreaks.com/topic/109547-absolute-position-ie-6/#findComment-562715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.