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 Els on 10/22/45 11:50

Stefan Mueller wrote:

> 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.

[snip layout table]

> Does anybody know how to get rid of this annoying space?

Add some CSS:
<img src="mypic.gif" alt="" style="display:block;">

Images are inline content, just like text. The space below the image
is the same space below text, to make room for descenders of letters
like g,j,p,q,y.

Above is inline CSS, but of course it's better to set that style in a
styleblock, or even better, in your stylesheet. By the fact that
you're using 1997 HTML like border="1" and align="center" as well as
tables for layout, I'm guessing you're not using CSS yet, so - quick
solution is inline CSS as per the example.

--
Els http://locusmeus.com/

 

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

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