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
What is a keyframe in css?
Can a div have multiple classes?
Explain CSS grid layout with example?
What is css autoprefixer?
What is inline element in css?
Is html and css coding?
What are conditional comments ?
What is the basic unit of css?
How do you inspect a selection option?
What are the types of css selectors?
Describe Internal CSS with it's Syntax?
What is text-overflow property use in css3?
Why use style sheets?
What will happen if we will use floats across the page with 100% width?
How flexibility is achieved more in css3?