topical media & game development

talk show tell print

basic-web-html-08-ch08-eg21.css / css



  /* Style sheet for CSS counters */
  
  body {counter-reset: chapter; counter-reset: section; }
  
  h1:before {content: "Chapter " counter(chapter) ": "; }
  h1 {counter-increment: chapter; counter-reset: section;}
  
  h2:before { content: counter(chapter) "." counter(section) " "; }
  h2 {counter-increment: section; }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.