Skip to content

Instantly share code, notes, and snippets.

@EkremGungormez
Created February 23, 2012 11:07
Show Gist options
  • Save EkremGungormez/1892381 to your computer and use it in GitHub Desktop.
Save EkremGungormez/1892381 to your computer and use it in GitHub Desktop.
adding text before list
ol.AnaListe
{
list-style-type:none; /* default sayacı siler */
counter-reset:elementcounter; /* Değeri 0 olan yeni bir sayaç oluşturur*/
}
ol.AnaListe > li:before
{
content: "MADDE - " counter(elementcounter) " - "; /* Listedeki elemanın numarasıyla birlikte “MADDE - “ yazar” */
counter-increment:elementcounter; /* sayacın arttırılması*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment