View Full Version : Tables....


Sasuke
01-01-2002, 12:01 AM
Um... I'm having trouble with tables. Here's my site. http://yay4anime.cjb.net . How do I make the stuff in the middle (where it says blah, blah blah...) not touch the side of the cell they're in? I want it to be spaced a little bit on the sides... Can someone help me please?

Hype
01-01-2002, 12:53 AM
set the cellpadding="2" or whatever you want. it goes into your <table> tag, or you can use the css and then you would have to do this:

td
{padding-left: value; [2cm, 4cm etc.]
padding-right: value; [2cm]
padding-top: value; [2cm]
padding-bottom: value; [2cm]
padding: value; [2cm this is for all four sides]
padding: value value [2cm, 4cm : two values for four sides, add numerical value] }

pick 1, I would go with: td {padding: value}

Dan the Danish
01-01-2002, 01:24 AM
wouldn't that sort of mess up the rest of the table? if i read it correctly, sasuke wants just to increase the padding on *one* cell.

Hype
01-01-2002, 01:42 AM
i didn't think of that, dumb me. do this to the cell that you want to have padding in write this:

<td style="padding: value">

this should just effect 1 cell that you want.

Sasuke
01-01-2002, 10:45 PM
Thanks! But that solution created another problem :( when I used <td style="padding: value"> it increased the width of my table, so I did...

<TABLE WIDTH="780">

and at the cell where I changed the cellpadding, I put

<TR WIDTH="480">

Those are the correct measurements but my table is still bigger in width a bit. Can someone please help me?

Edit: One more problem, when I increased the cellpadding it also screwed up the top of my cell. Is there a way to have it spaced on the left, right, and bottom but not on the top?

Hype
01-02-2002, 04:41 AM
yeah, do style="padding-left: value; padding-right: value"

and do <td width="whatever">

designgURL
04-04-2003, 05:25 AM
Can you use this in the main table tag (like where the non css cellpadding would go)? Cuz it's not working. :\

(I searched and found this for just doing cellpadding on the right and left)