Thursday, 18 March 2010

IE6 floating div margin bug

A very simple one this. I had 2 div elements on my web page. One floated left and one floated right. They had margins to their edges and it looked exactly as required in all proper browsers. That of course doesn't include Internet Explorer 6 which has been one of the bane's of my life for ages now.

Anyway, thankfully it turned out to be an easy fix and, when implemented, it didn't cause issues with Chrome, Firefox etc

All I did was put

display:inline;

on each of the floating elements.

No comments:

Post a Comment