W3C home > Mailing lists > Public > www-style@w3.org > June 2005

[CSS2.1] Interaction (or lack of such) of lists and counters

From: George Chavchanidze <gch@rmi.acnet.ge>
Date: Wed, 15 Jun 2005 18:58:10 -0400 (GMT)
To: www-style@w3.org
Message-ID: <Pine.GSO.3.96.1050615185433.27687D-100000@rmi-sun.rmi.acnet.ge>

Quote from CSS2.1
	In CSS 2.1, content may be generated by two mechanisms:
	The 'content' property, in conjunction with the :before and :after
	Elements with a value of 'list-item' for the 'display' property.

The problem is that this two mechanisms does not want to play together,
which I consider as one of the uglyests thing in CSS2.1
In many articles people use the following style for bibliographical lists:

	[1] item one
	[2] item one
	[3] item one

Now try to adjust default XHTML style sheet to make list markers
customisable. The only solution I managed to find so far is
quite ugly and can replace lists with "list-style-position:outside" only

	{content: "[" counter(item) "]";

This happens because list-style properties are not integrated with the
rest of CSS2.1. You can't adjust style of list style markers, they behave
foreign objects that lay ouside the scope of CSS. The present solution is
quite ugly
and I think list-style-type should be merged somehow with the rest of CSS.
Received on Wednesday, 15 June 2005 14:47:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:18 UTC