If I have a table and I want to add a page break after each 7th row how would I do that with css?

Code CSS:
#table tr:nth-child(7n+1)
{ 
   page-break-after","always"
}