From cef4e890d79c9b7bb676f901d60e069324c15a6e Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 25 Jan 2009 17:30:34 -0500 Subject: [PATCH] autonumbering of sections --- dip3.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dip3.css b/dip3.css index 907be62..4ccd528 100644 --- a/dip3.css +++ b/dip3.css @@ -27,5 +27,9 @@ figure{display:block;text-align:center;margin:1.75em 0} figure img{display:block;margin:0 auto} section,article,footer{display:block} var{font-family:monospace;font-style:normal} -body{counter-reset:h2} -h2:before{counter-increment:h2;content:counter(h2) ". "} +body{counter-reset:h1} +h1:before{counter-increment:h1;content:counter(h1) ". "} +h1{counter-reset:h2} +h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". "} +h2{counter-reset:h3} +h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". "}