View Full Version : A question about cellpadding?


Blackness_2000
06-20-2004, 04:18 AM
I was wondering if something could help me out with a little cellpadding trouble. I hope that I can make sense out of this, but if not let me know!! :)

Okay this is my code:

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" class="border" width="150">
<tr>
<td width="150" class="header1"><img src="images/stats.gif" border="0"></td>
</tr>
<tr>
<td width="150" class="header2">Testing
</td>
</tr>
</table>

If you have too, which I know you will, look at this page to understand what I am trying to say--->HERE (http://www.geocities.com/drummerboi6981/index.htm)

Okay here it goes.........See where it say's -----Site Stats----on one of the tables? Well that's an image that I made. I have it so that it fits perfectly with the table border. If I add cellpadding to the table, the image moves away from the table borders and looks funny. But the thing is, I do want cellpadding for my other table with the text where it says "Testing". I don't know if this is possible, but I hope that someone could help me. Again if that was confusing, please let me know!! Thanks.

Blackness_2000

Blackness_2000
06-20-2004, 04:27 AM
A quick reply to add to above.........I just really want this cellpadding for the text, because I don't like it so close to the table borders, so if there's another easier way to move the text away from the walls, don't hesitate to tell me!! :) Thanks again!

Blackness_2000

pb&j
06-20-2004, 04:27 AM
try adding this to the specific TD tag...

style="padding:5px;"

adjust the number as required.

Blackness_2000
06-20-2004, 04:36 AM
Wow thanks pb&j......I was trying to twiddle around with the TD tags and TABLE tags with the "cellpadding" tribute, but it still didn't work. Thanks a lot though!! :)

Blackness_2000