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 cascading in hibernate?

0 Answers  


How does Calc work?

1 Answers  


Which property is used to set the background image of an element?

0 Answers  


What is inline element in css?

0 Answers  


What are css sprites?

0 Answers  






What is the use of cascading style sheets?

0 Answers  


Who invented css?

0 Answers  


What is css calc() function?

0 Answers  


What does webkit mean?

0 Answers  


What is a tag selector in css?

0 Answers  


What are the features of cascading style sheets?

0 Answers  


What will this piece of css code do to an element? .container { margin: 0 auto; }

0 Answers  


Categories