You are here: Re: How to avoid the space on the right and bottom side of an image in Internet Explorer « HTML « IT news, forums, messages
Re: How to avoid the space on the right and bottom side of an image in Internet Explorer

Posted by Neredbojias on 11/25/31 11:50

To further the education of mankind, "Stefan Mueller"
<seekware-remove-@yahoo.com> vouchsafed:

> Opera and Mozilla draw the border of the cells of the table just after
> the picture. With Internet Explorer I do always have a small space.
> If you select the image with the mouse you'll see that there's somehow
> a small space on the right and bottom side of an image in Internet
> Explorer.
>
> <table width = "100%" cellSpacing = "0" cellPadding = "0" border =
> "1"
> align = "center">
> <tr>
> <td>
> <img src = "mypic.gif">
> </td>
> </tr>
> <tr>
> <td>
> <img src = "mypic.gif">
> </td>
> </tr>
> </table>
>
> Does anybody know how to get rid of this annoying space?
> Stefan

Style the container (in this case table or td) with any/all of the
following:

line-height:0px;
font-size:0px;
vertical-align:bottom;

and, as mentioned, you could try display:block; on the images.

--
Neredbojias
Infinity has its limits.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация