Showing posts with label div element. Show all posts
Showing posts with label div element. Show all posts

Friday, May 30, 2008

Image in div container in IE6

When you have image in a div container(w/o borders), it adds 2px gap between bottom edge of the image and bottom border of the div.
This problem occurs in IE6 only.(I haven't tested below IE6 browsers).

Solution:
Apply this css to image element. This will solve the problem.
img {vertical-align:bottom;}

Source: Click here