SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2007
    Location
    East of Ottawa, ON
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    :nth-child and page break

    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"
    }

  2. #2
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's nth-of-type you're looking for, more likely.

    It should be
    Code:
    tr:nth-of-type(7n) {
      page-break-after:always;
    }


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •