Counters in elements with 'display: none' - CSS3 Examples

Counters in elements with 'display: none'

Written by jon on 11:52 AM
An element that is not displayed ('display' set to 'none') cannot increment or reset a counter.

Example(s):

For example, with the following style sheet, H2s with class "secret" do not increment 'count2'.

H2.secret {counter-increment: count2; display: none}

Elements with 'visibility' set to 'hidden', on the other hand, do increment counters.

Related Posts by Categories



Widget by John | Interviewghost
  1. 0 comments: Responses to “ Counters in elements with 'display: none' ”

RECENT COMMENTS

SUBSCRIBE TO CSS3 EXAMPLES

 Subscribe to css3 Examples via RSS
Or, subscribe via email:
Find CSS3 Examples Entries :