I have search the web for a few hours and haven't found any solution to ie7 buggs for this particular layout.
What I want is to be able to generate a series of img tags with class left or right and get them to flow in a text below each other and on the left or right side depending on what class they got. I got this to work perfectly in FF but not in ie7.
What I want is somethin like this:
I can get this in FF with float:left and float:right and clear:both but in ie7 I get this:Code:XXXXXIMG1 XXXXXIMG1 IMG2XXXXX IMG2XXXXX IMG3XXXXX IMG3XXXXX XXXXXXXX
I have tried clearing divs putting in floating contense between the images and a 100 other fixes and stuff anybody got any idea how to fix this???Code:IMG2XIMG1 IMG2XIMG1 IMG3XXXX IMG3XXXX XXXXXXXX XXXXXXXX XXXXXXXX
Here is a simplyfied test case:
Code:<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'> <html> <head> <title>ie7 buggy bug!</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; font-size: 12px} p {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; width:400px;} td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;} .floatleft {float:left; display:block; clear:both; margin-top: 0px; margin-bottom: 10px; margin-left: 0px; margin-right: 10px;} .floatright {float: right; display:block; clear:both; margin-top: 0px; margin-bottom: 10px; margin-left: 10px;margin-right: 0px;} --> </style> </head> <body> <p> <img src="image.jpg" class="floatleft" width="50" height="50"> <img src="image.jpg" class="floatright" width="50" height="50"> <img src="image.jpg" class="floatleft" width="50" height="50"> <img src="image.jpg" class="floatright" width="50" height="50"> This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... This dosen't this work... </p> </body> </html>




Bookmarks