You are here: Re: tables and images, in IE (ok in firefox) « HTML « IT news, forums, messages
Re: tables and images, in IE (ok in firefox)

Posted by richard on 11/21/07 15:23

On Wed, 21 Nov 2007 00:36:48 -0800 (PST), jodleren wrote:

> hi all!
>
> I have this
>
> <table cellpadding=0 cellspacing=0 border=0>
> <tr><td valign="top">
> <img src="img1.gif" border=0>
> </td><td valign="top">
> &nbsp;a
> </td></tr>
> <tr><td valign="top">
> <img src="img2.gif" border=0><img src="img3.gif" border=0>
> </td><td valign="top">
> &nbsp;b
> </td></tr></table>
>
> Problem: IE gives a small pixel distance between the rows. Firefox
> does not.
> I have another file, which works in IE. But I cannot tell the
> difference, except it consists of 3 td's, and their width's are set.
>
> What is the secret?

In css, use margin:0
I believe IE uses a default of 1.
you should also use quotes around numbers.
cellpadding="0".
without quotes it may be overlooked as being faulty.

Then why are you placing images inside a table anyway? They should be in a
division which would make coding simpler.

<div class="image1">image1.gif</div>
use css to define the peramiters.

 

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

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