Css propety for cellspacing, cellpadding and border?

hey folks,
i have table with cellspacing, cellpadding and border=0. i want to remove it and have it in css. how can i use them in table{} class

table {
  border-collapse:collapse; /* cellspacing=0 */
  border:none; /* border=0 */
}

td, th {
  padding:0; /* cellpadding=0 */
}