CSS Units – When to Use rem, em, px, and More
CSS units allow you to measure and specify different property values. You use them to modify CSS properties such as margins, padding, height, and width to make them compatible with devices of all screen sizes.
CSS units have two basic types:
Absolut...
freecodecamp.org9 min read