View Full Version : How to specify cellspacing & cellpadding in css?

03-14-2005, 10:01 AM

I have to change this HTML code <table width="100%" border="1" cellspacing="1" cellpadding="3"> to css code. I have done with width and border attribute but don't know how to set cellspacing and cellpadding attributies in css code.

Please, help me asap. Thank you very much!

03-14-2005, 10:40 AM
Padding on the individual cells can be set through the padding property; cell spacing should be controllable with styles in the separated borders model, but is not correctly supported by IE. If you need the cells to be spaced out, it's adviced to maintain using the cellspacing attribute.