W3C home > Mailing lists > Public > www-style@w3.org > January 2014

[gcpm][books] thematic breaks at the top of a page

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 27 Jan 2014 07:48:51 -0800
Message-ID: <52E67FE3.3080904@mcc.id.au>
To: "www-style@w3.org" <www-style@w3.org>
One effect I noticed in a book recently was the presence of a horizontal 
line indicating a thematic break, but only if the break is at the top of 
a page.  So something like this:

   hr {
     border: none;
     margin: 1em 0;
     padding: 0 5em;

   hr:at-top-of-page {
     border-top: 1px solid black;

When you use an <hr> and it lands at the top of a page, the gap by 
itself won't distinguish itself enough, and that no ink at the top of 
the page is aligned with the text on the following page probably doesn't 
look good.

Maybe :at-top-of-page is too specific; you might want this effect at the 
top of other fragmenting containers, like columns.
Received on Monday, 27 January 2014 15:49:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:39 UTC