When I started digging into CSS, I found various units for font-size. It was a bit confusing as to which one to use when, where and why. After investing some time, I found three units that I decided to use in my projects – px, em and rem. PX Pixels are the easiest measurement to use. But there is a […]
Author: admin
Display properties: block, inline, and inline-block.
Web browsers treat every element as a kind of box. However, CSS has two different types of boxes — block and inline. A block element always starts on a new line, and fills up the horizontal space left and right on the web page. You can add margins and padding on all four sides of […]
CSS Counters
Ordered lists aren’t the only elements that can be automatically numbered. Thanks to the various counter-related properties, any element can be. CSS counters let you adjust the appearance of content based on its location in a document. For example, you can use counters to automatically number the headings in a webpage. Counters are, in essence, variables […]