Monday, July 9, 2012

HTML5 equivalent of cellpadding, cellspacing, valign, and align?

/*cellpadding*/
th, td { padding: 0; }
 
/* cellspacing */
table { border-collapse:separate; border-spacing: 0; }
 
/* valign */
th, td { vertical-align: top|middle|bottom; }
 
/* align (center)
   width of table must be less than the parent container */
table { margin: 0 auto; }