In the last article, we learned about styling forms in CSS. Till now we have covered many major things in CSS. Today we are going to learn one more thing which you may use for sequence creation.
Let's begin...
Let's begin...
CSS Counters
There are some variables maintained by CSS whose value can be incremented by CSS rules. Counters are one of them. We can use them to count of some type of content.Automatic Numbering
Counters can be used for automatic numbering. Following properties are available related to counters:- counter-reset - Creates or resets a counter
- counter-increment - Increments a counter value
- content - Inserts content
- counter() or counters() function - Adds a value of a counter to an element
Here is an example of what we are talking...
That's all for today. It is really short and easy concept. It is required very few times but it is better to have knowledge. In the next few articles, we are going to see about website layout.
Till then #keepCoding.
Comments
Post a Comment