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.
0 comments: Responses to “ Counters in elements with 'display: none' ”