Click to See Complete Forum and Search --> : Question about tables


haan
09-26-2003, 03:42 PM
In the code of www.kunsterf.nl/galerijproef11.html I have a table with 4 cells, each filled with an image. The dimensions of all images are width=100 pixels and height=75 pixels. What I don't understand is that there is a white space between the first and second row of images and under the second row of images also. I would expect that all cells are nicely filled without open spaces, because I have made the dimensions all four cells 100 x 75 pixels. What do I do wrong?

Jona
09-26-2003, 04:26 PM
Try adding this to the HEAD of your document:


<style type="text/css"><!--
table {padding:0px;}
--></style>


[J]ona

Fang
09-27-2003, 02:52 AM
It's that gap again...
td img {display: block;}
For an explaination why see here (http://devedge.netscape.com/viewsource/2002/img-table/)

haan
09-27-2003, 07:07 AM
Thanks Fang,

Kippie

elizajan
10-23-2003, 04:20 AM
Your code has a line return, or space, between the code for the image ending 'height="75">" and the </TD>

Removing this space in the code removes the space in the display.