Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

explorer: 3px margin for the img 1

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
hallo,

I would like div box after (vertically) an image but explorer will always insert a 3px margin between the img and the box. Is it possible to get rid of it, without needing tables layout...?

Here is what I write:

Code:
<img src="img/box_about.gif" alt="" />
<div class="box">
   <p class="title_box">Tharuka</p>
   <p class="text_box">Reisefuhrerir</p>
</div>

 
That looks like IE incorrectly applying whitespace as actual space. Try making the img a block level element or just try removing all the whitespace (new lines, spaces) between the <img> and the <div>.
 
yes, removing all whitespaces made it works... thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top