Home  >  Article  >  Web Front-end  >  The gap between images and containers in IE6_html/css_WEB-ITnose

The gap between images and containers in IE6_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:12:271184browse


Why is there always a gap between the bottom edge of the picture and the bottom edge of the div after placing an image in a div in IE6? How to eliminate this gap? Tried setting margin and padding to no avail.


Reply to discussion (solution)

Try setting the border of the image to 0

Try setting the border of the image to 0 Trying
doesn’t work, but I found a way. Just set the display of img to block.

This is a historical question, take a look at this article: http://www.wheattime.com/images-tables-and-mysterious-gaps.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn