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

What is the purpose of % measurement unit?

0 Answers  


What is a wrapper div?

0 Answers  


How to style forms?

0 Answers  


What is css flexbox?

0 Answers  


What is the difference between css2 and css3?

0 Answers  






What is a benefit of using a style sheet?

0 Answers  


Who is the founder of css & when css3 released?

0 Answers  


How do I have links of different colors on the same page?

0 Answers  


Which property is used to set the text direction?

0 Answers  


What is inline style sheet?

0 Answers  


How does css work in browser?

0 Answers  


What is the asterisk in css?

0 Answers  


Categories