css Counter styles
Written by jon on 11:51 AM By default, counters are formatted with decimal numbers, but all the styles available for the 'list-style-type' property are also available for counters. The notation is:counter(name)
for the default style, or:
counter(name, 'list-style-type')
All the styles are allowed, including 'disc', 'circle', 'square', and 'none'.
Example(s):
H1:before { content: counter(chno, upper-latin) ". " }
H2:before { content: counter(section, upper-roman) " - " }
BLOCKQUOTE:after { content: " [" counter(bq, hebrew) "]" }
DIV.note:before { content: counter(notecntr, disc) " " }
P:before { content: counter(p, none) }
0 comments: Responses to “ css Counter styles ”