PDA

View Full Version : IE float troubles



duncanhall
March 13th, 2007, 04:47 PM
This is the page in question:

http://www.duncanhall.net/wca/portfolio.php?student=3

In firefox, it displays as I want it to (and expect it to). In IE7, the 'previous' and 'next' buttons are not cleared of the image.

The image is in a div which is floated left, and the footer div containing the 'previous' and 'next' buttons has a clear: property of 'both'.

Any ideas how I can get Internet Explorer to sort itself out?

simplistik
March 13th, 2007, 06:11 PM
use a clearing element not the property on the elements... it doesn't work like it should cause of weird cross-browser glitches. I have about 100 or so posts concerning this so i won't type the code again :) just look for my name and .clear or clear.

duncanhall
March 13th, 2007, 07:15 PM
Cheers, that's sorted it thanks.