PDA

View Full Version : Help /w Tables



lurkingfridge79
April 29th, 2003, 18:11
Hey,

Im having a bit of trouble with some HTML tables. Im trying to get a basic layout before I add i-frames etc. and I keep getting spaces between the images. I've tried everything i can think of to get rid of the spaces, cellpadding, cellspacing, cellmargin, border, <img border> etc. and I still cant firgure it out. http://www.lurkingfridge79.net/hardcorps/index2.html is the page im trying to debug.

EpidemiK
April 29th, 2003, 18:21
<table align="center" width=100% height=100% cellspacing=0 cellpadding=0 cellmargin=0>
<col>
<tr>



<td>


<img src="http://www.lurkingfridge79.net/hardcorps/images/grey/frame1.gif" border=0>


</td>
</tr>
<tr>
<td>
<img src="http://www.lurkingfridge79.net/hardcorps/images/grey/frame2.gif" border=0>


<img src="http://www.lurkingfridge79.net/hardcorps/images/grey/frame3.gif" border=0>
</td>
</tr>
</col>
</table>

You have all these spaces in your code. Just remove all those and you'll be ok.

lurkingfridge79
April 29th, 2003, 18:22
Thanks! Ill try that.

lurkingfridge79
April 29th, 2003, 18:26
Yea, that worked, thanks! I always thought spaces didn't matter though. Well, whatever. Thanks again!

lurkingfridge79
April 29th, 2003, 21:49
OK. More trouble. How can I make images the backgrounds of tables cells or even of tables? (If you can at all). Thanks again.

Däs Fridge

Ixion
April 30th, 2003, 04:46
background="image.jpg"

neftha
May 2nd, 2003, 11:38
Make sure you specify height and width for the table cells (exactly the same size as the picture you like to use for the background).

Normally spaces shouldn't matter in html ... unfortunately browsers have seperate ways of interpreting things (be sure to check your site in both netscape and internet explorer)

A free editor that helped me very much with setting up a layout with tables, combined with pictures, was ace html ... if you can't get it working, try using that. It learnt me most of my basic html knowledge.