Log in

View Full Version : Problem with top-margin @ IE/FF



kobo1d
06-06-2009, 03:09 PM
Hey..

Well im in trouble with a image/text wrap and margin/padding..
Here is my Code:


<p style="margin-top: 0px;">
<img src="my_image.png" alt="Image" width="355" style="float: left; margin-right: 25px;">
</p>
<p style="text-align: left; margin-top: 20px;">
Here goes my Text...<br>
lala, blahblah!
</p>

now with IE the image stays on top and the text moves down,
while with FF both the image and text move down...

anybody can help me plz! i want only the text to be moved,
working in ALL browsers!


THX

X96 Web Design
06-07-2009, 03:59 AM
First of all - always make it work in Firefox FIRST, never use IE as your main testing browser. It's bad practice and you will be scolded by many. ;)

As for the code issue... Set the float:left to the <p> tag as well and see if that works.

Hope that helps...

// X \\