How could you use CSS to achieve the following automatic numbering?



How could you use CSS to achieve the following automatic numbering?..

Answer / hrpynux@gmail.com

Initialize the counter on the parent div using counter-reset.
Increment the counter value by 1 on the child div p using counter-increment.
Add the counter variables before the div p content using the :before pseudo selector.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CSS Cascading Style Sheets Interview Questions

How do I change my background?

0 Answers  


How comments can be added in CSS?

0 Answers  


What hsl stands for in css3?

0 Answers  


How do we comment a CSS file?

0 Answers  


What is the purpose of pc measurement unit?

0 Answers  






Which property is used to control the repetition of an image in the background?

0 Answers  


How to style label associated with the selected radio input and checked check boxes ?

0 Answers  


What is a tag selector in css?

0 Answers  


Can style sheets and html stylistic elements be used in the same document?

0 Answers  


What is a css selector selenium?

0 Answers  


What are the formatting behaviors of html elements?

0 Answers  


What are the disadvantages of external style sheets?

0 Answers  


Categories