Forum Moderators: not2easy

Message Too Old, No Replies

text refuses to wrap around image in IE6

         

wesg

10:19 pm on Nov 8, 2008 (gmt 0)

10+ Year Member



I only care about IE6 because a fairly large percentage of my traffic uses the browser, but right now I'm trying to get a new look for the website and text refuses to wrap around my image (only in IE6).

My image uses the class alignright or alignleft for the different floats, and this is the CSS code:

img.alignright {padding:4px; margin:0 0 2px 7px; display:inline;}
img.alignleft {padding:4px; margin:0 7px 2px 0; display:inline;}

The text is always pushed below the image instead of wrapping around it. Is there a problem with this code or where else might the problem be?

swa66

12:38 am on Nov 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would expect a float:left; or float:right; somewhere in there ...

tangor

1:04 pm on Nov 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You will need a float statement or, old school:

<img src="someimage.jpg" width=174 height=320 border=0 alt="" align="left" hspace=10 vspace=10>

or

<img src="someimage.jpg" width=271 height=420 alt="" border=2 align="left" style="margin-right:10px">