Home  /  Questions  /  Question

129   96.7
Oct 23, 2013

Setting a table's cellpadding, cellspacing, and border in CSS

I believe I am showing my age with my table formatting in HTML:
<table cellpadding="2" cellspacing="1" border="0">
My code editor tells me that cellpadding and cellspacing are 'unknown attributes'.  I suspect that border is also being phased out. 
What are the proper ways to format these in CSS?