HTML - CellPadding - one side?

Status
Not open for further replies.

ayenem

Baseband Member
Messages
85
I cant find answers any where in cyber space. Maybe somebody here knows whether its possible to "pad" just one side (top, bottom, left OR right) of a cell?

Thanks.
 
What you can do is embed another table inside that cell with the width that you want (for example, 95% would appear to be 5% cellpadding) and then align it or valign it accordingly.
 
i got another answer on a diff forum. He suggested something along the lines of:

padding-left: "5px"

placed in a CSS and then call it using <DIV> when needed.

What do you think?
 
OOHH I GOT IT *grins*

check it out-

.leftbar {
padding-left: 2px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
}

...

<div class="leftbar"></DIV>

man thats so cool when you finally figure something out on your own that you have been trying to do for a long time. hehe im all smiles right now. man im a dork lol
 
Yeah that was hard to find, so if mods wanna snatch that up and store it some where for TF people to use go for it.
 
you can also use this code inside tables if you need to

<td style="border-top: 1px solid #000000"
<td style="border-bottom: 1px solid #000000"

etc...
 
Status
Not open for further replies.
Back
Top Bottom