how to centralize a html table using CSS ?

To centralize a html table we will need to set left and right margin css properties of table to auto and apply the css class on html table.


how to set cellpadding=0 and cellspacing=0 using css

To manage cellpadding=0 and cellspacing=0 using css we will need to set two css properties. In table css class we will set border-collapse: collapse and in th/ td class we will need to set margin and spacing of td to zero.