How to avoid gap between image and text div?

They have: 42 posts

Joined: Jun 2004

If I put an image and just under it div filled with text there always seems to be a gap between these two element. Setting margins and paddings to zero doesn't help. One thing I noticed is that if I put value of vertical-align of image to "bottom" problem is cured on IE but not on Mozilla. Do I have to use negative margins or is there any better solutions?

-Teemu

Busy's picture

He has: 6,151 posts

Joined: May 2001

can you give us some sample code

vexcom's picture

He has: 21 posts

Joined: Jul 2004

La tee da

try that, actually it should work without the second div, but im too tired to test it, cant display HTML here AFAIK

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.