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
Are style sheets case sensitive?
How do you make a style sheet?
What is box sizing in css?
What is a main element in coding?
What is another word for domino effect?
What is the difference between html5 and css3?
What is css explain with example?
What are the benefits of CSS sprites?
List out css3 modules?
How can the gap under the image be removed?
What is the difference between margin and padding in android layout?
How embedded style can be linked with HTML documents?
How can the same properties be defined for different elements without repeating them again and again? Explain with an example:
Call an external style sheet and an external script located in the root folder called style.css and main.js with html.
How do you collapse margins in css?