---
title: "Discussion on \"CSS Units – When to Use rem, em, px, and More\" | Hashnode"
description: "Discussion on \"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.\nCSS units have two basic types:\n\nAbsolut..."
url: "https://hashnode.com/posts/css-units-when-to-use-each-one/66bb9398d2bda3e4315491f7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CSS Units – When to Use rem, em, px, and More](https://freecodecamp.org/news/css-units-when-to-use-each-one?utm_source=hashnode&utm_medium=feed)

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...

Jan 25, 2024 · 9 min read · freecodecamp.org  
Read the article

-   [#css](https://hashnode.com/tag/css)

## Written by

[Esther Christopher](https://hashnode.com/@EstherChristopher)

@EstherChristopher · Lagos, Nigeria

  
[View profile](https://hashnode.com/@EstherChristopher)

Technical Writer, Software developer

Esther is a Technical writer who has specific interests in software and API documentation. She is also a front-end developer who loves to share her knowledge of programming concepts on her blog and for other publications. She is also an Open Source advocate.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
