- From: Bert Bos <bert@w3.org>
- Date: Sun, 8 Sep 2002 02:34:01 +0200
- To: "www-style@w3.org" <www-style@w3.org>
On Saturday 07 September 2002 06:05, Coises wrote: > How about adding two pseudo-classes, ":odd-page" and ":even-page"? [...] > I think this could be far more flexible than anything yet discussed. Yes, it is flexible, but (as you pointed out), it also has some problems: certain properties ('display', 'position', 'float', 'page-break-inside', 'page-break-before'...) cannot depend on the page. Maybe we need neither new properties nor new selectors; a handful of values might do all we need in practice. Looking at the books on my shelves, I see differences in page margins, page number positions and similar things, which all can be handled through @page:left/@page:right. I also see images floating left or right, depending on the page side, for which we can add 'float: outside' and 'float: inside'. That's basically it. I can imagine some playful layout that has headings aligned differently (although I don't remember having seen it in practice), which could be handled by adding 'inside' and 'outside' to 'text-align'. Where the layout is more complex than this, the two pages appear to have been designed as a single, 2-page spread. In theory, we have that capability already in CSS2, via named pages. Bert -- Bert Bos ( W 3 C ) http://www.w3.org/ http://www.w3.org/people/bos/ W3C/INRIA bert@w3.org 2004 Rt des Lucioles / BP 93 +33 (0)4 92 38 76 92 06902 Sophia Antipolis Cedex, France
Received on Saturday, 7 September 2002 20:34:09 UTC