Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Killer Possum on January 14, 2004, 02:28:09 PM

Title: Cellpadding
Post by: Killer 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
Title: Re: Cellpadding
Post by: Cadish on January 14, 2004, 03:07:13 PM
By placing in div's and define padding in it
Title: Re: Cellpadding
Post by: Killer Possum on January 14, 2004, 03:10:11 PM
Thanks, I will give that a try :)
Title: Re: Cellpadding
Post by: pulpitfire on January 14, 2004, 03:12:03 PM
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"
Title: Re: Cellpadding
Post by: Killer Possum on January 14, 2004, 03:19:07 PM
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 ;)