How can I make a cellpadding of 10 pixels above and below table rows but 0 pixels to the left and right?
Printable View
How can I make a cellpadding of 10 pixels above and below table rows but 0 pixels to the left and right?
http://www.w3.org/TR/REC-CSS2/tables.html
Does that help?
Sort of, I tried margin-top and margin-bottom but they didn't work when I put them in the TD or TR tags.
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.Code:<tag style="padding-top:10px;padding-bottom:10px;padding-left:0px;padding-right:0px">
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.
It worked beautifully. :)