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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a keyframe in css?

305


Can a div have multiple classes?

290


Explain CSS grid layout with example?

275


What is css autoprefixer?

301


What is inline element in css?

299






Is html and css coding?

299


What are conditional comments ?

213


What is the basic unit of css?

292


How do you inspect a selection option?

294


What are the types of css selectors?

285


Describe Internal CSS with it's Syntax?

312


What is text-overflow property use in css3?

250


Why use style sheets?

277


What will happen if we will use floats across the page with 100% width?

281


How flexibility is achieved more in css3?

245