IT.COM

HTML - CellPadding - One side?

Spaceship Spaceship
Watch
Impact
0
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.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
yes it is would be like

padding-top : 10px ( sub bottom, right, or left for top where needed)
 
0
•••
nice. thanks.

So I would create something like
.test {
padding-left: 10px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
}

and then call the class something like:

<DIV class="test">table that i want padded on the left only</DIV>

Does that look right?
 
0
•••
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

THANKS BRIAN you got me onto the right path
 
Last edited:
0
•••
No problem, glad to point you into the right direction :)
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back