Forum How do I...?

Does the :first selector work on named pages?

quiredan
I have a section of a document that spans multiple pages and I want to use a different header/footer on the first page. I thought the :first selector would be what I want but it doesn't seem to be working.

@page mypage:first {
  @top {
      /* Styles here */
  }
}

@page mypage {
  @top {
     /* Styles here */
  }
}

It seems to be having *some* effect in that the header is empty on the first page, but it's not displaying the content that I'm adding.

Edited by quiredan

quiredan
Actually it does work. I just had another style somewhere that was conflicting with this.