justuptime.com - monitor your servers & websites

How to avoid gap between image and text div?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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
Modrater

He has: 6,157 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

- Wesley E. Warren, CEO - Vexcom Advanced Systems Development
Realty-SEO Real Estate Marketing
Freelance Graphic and Web Designers Directory - Join Free
"All limitations are self imposed" ~ Malaclypse The Younger