PDA

View Full Version : Tables not displaying correctly on webpage


stevenm21
08-17-2006, 04:58 PM
I have a website that gathers stats and stuff for ice hockey in the UK, and my fixtures pages uses tables. When I insert a table in dreamweaver it looks all ok, but as soon as I upload it, it looks weird. (too much space in each cell box.)

here is a picture of how it looks in dreamwaver (how i want it too):
http://www.ukicehockey.com/images/tables.jpg

and how it looks like on the web:
http://www.ukicehockey.com/apr29.php

can someone tell me why this is happening? and how to fix it?

domedia
08-17-2006, 08:03 PM
You've got paragraph tags inside your tablecells. Paragraphs have margins by derfault. Either remove them (but I don't you want that because your font size is associated with them), so insert a 0 margin to the paragraph:
<p style="font-size: 75%; margin: 0;">Game</p>

If you look at the code for your tables further down, you have about 10 nested span tags. One should be enough :)