proposed li:marker pseudo-class

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.
  </li>
etc

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