Click to See Complete Forum and Search --> : Table CSS formatting [resolved]
filburt1
Dec 5th, 2001, 04:43 PM
How can I make a cellpadding of 10 pixels above and below table rows but 0 pixels to the left and right?
CiberTHuG
Dec 5th, 2001, 05:24 PM
http://www.w3.org/TR/REC-CSS2/tables.html
Does that help?
filburt1
Dec 5th, 2001, 05:33 PM
Sort of, I tried margin-top and margin-bottom but they didn't work when I put them in the TD or TR tags.
JoshT
Dec 6th, 2001, 10:57 AM
<tag style="padding-top:10px;padding-bottom:10px;padding-left:0px;padding-right:0px">
You'll probably need to play with the padding and margin (and maybe border) for the TABLE, TR, and TD tags to get the look you want.
scoutt
Dec 6th, 2001, 11:18 AM
the only way I think to solve this is to make a transparent gif the size you want and put it above and/or below the text/image in the cell.
cellpadding is all around the cell, don't recall it being selective like you want.
top-margin is for the browser not table cells.
filburt1
Dec 8th, 2001, 11:40 AM
It worked beautifully. :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.