W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

Re: [csswg-drafts] [css-page] control space before element depending on page position

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Wed, 29 Jun 2016 13:38:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-229358175-1467207529-sysbot+gh@w3.org>
While I agree that this is a valid use case, this can already be 
achieved using the `:first-of-type` pseudo-class.

So, picking up the example (using a valid heading selector), you may 
want to use this:
h2:first-of-type {
  margin-top: 2em;


GitHub Notification of comment by SebastianZ
Please view or discuss this issue at 
using your GitHub account
Received on Wednesday, 29 June 2016 13:39:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:59 UTC