W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: [css3-gcpm] [css3-page] Named page lists

From: Håkon Wium Lie <howcome@opera.com>
Date: Sat, 12 Jul 2008 00:03:01 +0200
Message-ID: <18551.55445.564172.709683@opera.com>
To: James Elmore <James.Elmore@cox.net>
Cc: CSS <www-style@w3.org>

Also sprach James Elmore:

 > This is definitely off-topic, so I apologize for that, but this  
 > discussion had brought up a thought. (In my mind, it was probably  
 > lonely, so I wanted to pass it on to the group.)
 > 
 > Is there some way to place an element (image, content, footnote,  
 > etc.) at the END of a chapter? This discussion is about first page  
 > triggers -- what about last page triggers?

Generated Content for Paged Media [1] proposes a way to move content.
Consider this markup:

<contrib contrib-type="author">
  <name>
    <surname>Knuth</surname>
    <given-names>Donald E.</given-names>
  </name>
  <role>professor</role>
</contrib>

combined with this style sheet: 

  surname { float: to(lastname) }
  given-names::after { content: from(lastname) ", " }

will result in this presentation: 

  Donald E. Knuth, professor

[1] http://www.w3.org/TR/css3-gcpm/

Does this address your needs?

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Friday, 11 July 2008 22:18:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT