View Full Version : Easy CellPadding Question

03-10-2005, 11:35 PM
I set my table to not wrap. Text is loaded from a variable. However, if the text is too long to that the nowrap causes the table to enlarge, the text is touching the left and right sides of the box (it has a border and doesn't look nice). I am trying to figure out how to give it alittle room just on the left and right sides. Is there anyway to give it a cell padding without giving it padding on top and bottom?


03-10-2005, 11:46 PM
if your using using stylesheets just put this in your css file

padding-left: 8px
padding-right: 9px

or if your not using stylesheets put his in your table tag

style="padding-left: 8px; padding-right: 9px"

03-11-2005, 12:13 AM
Awsome! Thanks