W3C home > Mailing lists > Public > www-html@w3.org > April 2008

proposed li:marker pseudo-class

From: Mark Alford <alford@wuphys.wustl.edu>
Date: Tue, 1 Apr 2008 10:38:01 -0500 (CDT)
To: www-html@w3.org
Message-ID: <Pine.LNX.4.64.0804011024240.27470@marcion.wustl.edu>

I have been trying to create a sectioned document using <ol>...</ol>.
Each list item is a section, which has a header, which should typically
be larger than the regular text in the section. If you do this in the
natural way,

<ol class="section">
  <li><h2 class="section">Title of first section</h2><br/>
   Content of section 1.

then the section number comes out smaller than the section title, which 
looks odd. See http://gomi.mailup.net/sections1.html

The problem is that the list item only knows about one font size, which
it uses for its marker and also for the contents of <li>...</li>.

One can patch this with <div> constructs, but the natural fix would be 
for there to be a li:marker pseudoclass, like li:first-line, which
allows one to control the font-size of the list marker, without
at the same time messing up the font size of the rest of the contents
of the list item.

Mark Alford
Received on Wednesday, 2 April 2008 04:35:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:19 UTC