Forum Moderators: not2easy

Message Too Old, No Replies

Loss of formatting with <p><img .> in IE6

         

abjack

12:06 am on Aug 9, 2006 (gmt 0)

10+ Year Member




Hi all,

Why am I losing the paragraph style when the first element in the paragraph is an image file?

For example, the style specifies

P {FONT: 9pt Verdana, Helvetica, sans-serif; MARGIN-LEFT: 5%; COLOR: white; MARGIN-RIGHT: 10%}

But when the first paragraph on the page begins

<p><img src="images/arrow.gif">Latest news ...

everything is jammed up against the left-hand margin, as though the margin-left attribute has been cancelled out -- and not just for this paragraph, but all following, including those which don't begin with an image.

And this is only with IE6 -- Firefox 1.5 retains the formatting.

Must be a simple solution, but can't figure it out.

jessejump

4:23 pm on Aug 9, 2006 (gmt 0)

10+ Year Member



I used that code with a doctype-transitional and it looked OK.