Posted By

LeeRJohnson on 10/08/10


Tagged

document typography


Versions (?)

Number Headings


 / Published in: CSS
 

  1. .oh {
  2. counter-reset: h1 h2 h3;
  3. }
  4. .oh h1:before {
  5. counter-increment: h1;
  6. content: counter(h1) ". ";
  7. }
  8. .oh h1 {
  9. counter-reset: h2 h3;
  10. }
  11. .oh h2:before {
  12. counter-increment: h2;
  13. content: counter(h1) "." counter(h2) ". ";
  14. }
  15. .oh h2 {counter-reset: h3;}
  16.  
  17. .oh h3:before {
  18. counter-increment: h3;
  19. content: counter(h1) "." counter(h2) "." counter(h3) ". ";
  20. }

Report this snippet  

You need to login to post a comment.