• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Help /w Tables

lurkingfridge79

New Member
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.
 
Code:
<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.
 
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
 
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.
 
Back
Top