/***********************************************************************\
 * sections.css - enumerated sections and subsections via CSS
 *
 * This is based on the example in Chapter 12 of "Cascading Style
 * Sheets"  by Eric A. Meyer (O'Reilly, 2002)
 *
 * @(#) $Id:$
\***********************************************************************/

body {
  counter-reset: sect subsect subsubsect ;
}

h1 {
  counter-reset: sect subsect subsubsect;
}

h2:before {
   counter-increment: sect 1 ;
   counter-reset: subsect subsubsect ;
   content: counter(sect) ". " ;
} 

/* h3 is "subsection" level */

h3:before {
   counter-reset: subsubsect ;   
   counter-increment: subsect 1 ;
   content: counter(sect) "." counter(subsect) ". " ;
} 

/* h4 is "sub-sub-section" level */

h4:before {
   counter-increment: subsubsect 1 ;
   content: counter(sect) "." counter(subsect) "." counter(subsubsect) ". " ;
} 

/*EOF*/
