| Author |
space added to graphics in table cells
|
|
| runner7@fastmail.fm 2006-08-02, 11:39 am |
| Can anyone tell me how to get rid of the extra space that browsers (IE
5.5 anyway) add to the bottom (and sometimes the sides) of gif's and
jpeg's inside the <td> element? I have tried:
cellpadding="0" in <table>
hspace="0" and vspace="0" in <img>
setting the width and height in the <td> and the <img>
leaving out the width and height in the <td> and <img>
valign="bottom" in the <td>
| |
|
| runner7@fastmail.fm wrote:
> Can anyone tell me how to get rid of the extra space that browsers (IE
> 5.5 anyway) add to the bottom (and sometimes the sides) of gif's and
> jpeg's inside the <td> element? I have tried:
>
> cellpadding="0" in <table>
> hspace="0" and vspace="0" in <img>
> setting the width and height in the <td> and the <img>
> leaving out the width and height in the <td> and <img>
> valign="bottom" in the <td>
For the space below the images:
td img{display:block;}
For the space to the sides: eliminate all whitespace in the code
between the <img> and its parents.
And of course, make sure the <td>'s aren't higher or wider than the
images.
--
Els http://locusmeus.com/
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |