CSS Posts

2 posts in this category

Counter Reset respects start attribute
In CSS, we can create a custom list numbering with counter-reset, counter-increment and counter() functions. For example: This approach works fine for most of the continuous list, for example: But…
CSS
Percentage Padding and Margin
When you specify a percentage value for the CSS padding or margin of an element, this percentage is based on the width of the containing block, not the width of the element itself. For example, in the…
CSS