News:

Join the Facebook Fan Page.

Main Menu

Cellpadding

Started by Killer Possum, January 14, 2004, 02:28:09 PM

Previous topic - Next topic

Killer Possum

I am working on a website and I needed to set cellpadding on my table to 0 because the top banner of the site needs to be flush with the body of the site, but in doing so the text is right up against the "walls" of the table. How can I make it so that the text is not up against the the table border?

Site: http://www.rmbs.com

Cadish

By placing in div's and define padding in it

Killer Possum

Thanks, I will give that a try :)

pulpitfire

#3
Quote from: Sexy Possum on January 14, 2004, 02:28:09 PM
I am working on a website and I needed to set cellpadding on my table to 0 because the top banner of the site needs to be flush with the body of the site, but in doing so the text is right up against the "walls" of the table. How can I make it so that the text is not up against the the table border?

Site: http://www.rmbs.com

<td style="padding-left: 4px">

it can also be padding-right, top, or bottom, and you can change the px to the width of your choice.

or you can do something like this in your table tag:

style="margin-left: 10px"

Killer Possum

I will try both of these when I get home, I also have the option of doing 2 different tables, but I'd like to use as few as possible ;)

Advertisement: