---
title: "#px-rem-and-em articles | Hashnode"
description: "Explore 4 articles tagged #px-rem-and-em on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/px-rem-and-em"
---

Tag

# #px-rem-and-em

4 posts · 0 followers

[Aditya Goswami](https://hashnode.com/@Aditya-goswami) · [Feb 3](https://hashnode.com/posts/px-vs-rem-vs-em-vs/69823d22d9f0256419abf892)

### [px vs rem vs em vs %](https://adityago.hashnode.dev/px-vs-rem-vs-em-vs?utm_source=hashnode&utm_medium=feed)

This is where people overthink. Here’s the real-world rule set. 🔹 Use px for: ✔ Borders✔ Shadows✔ Small offsets✔ Hairline precision border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); px = physical precision 🔹 Use rem for: ✔ Font sizes✔ ...

2 min read · [adityago.hashnode.dev](https://adityago.hashnode.dev/px-vs-rem-vs-em-vs?utm_source=hashnode&utm_medium=feed)

[Kohki Chau](https://hashnode.com/@Kohki888) · [Apr 19, 2024](https://hashnode.com/posts/responsive-web-design/6622818fed0a251a85c8a9cf)

### [Responsive Web Design](https://librarian.hashnode.dev/responsive-web-design?utm_source=hashnode&utm_medium=feed)

Basic knowledge of mobile development 1. REM Dimensional unit Definition : REM (Root EM): a relative unit based on the font size of the root element (HTML element). Application : In mobile development, REM is used to implement responsive layout. Ma...

16 min read · [librarian.hashnode.dev](https://librarian.hashnode.dev/responsive-web-design?utm_source=hashnode&utm_medium=feed)

[Oluwasegun Idowu](https://hashnode.com/@engrshege) · [Feb 11, 2024](https://hashnode.com/posts/ep-28-css-3/65c89d017780df7fc09602a0)

### [Ep. 28: CSS 3](https://engrshege.hashnode.dev/ep-28-css-3?utm_source=hashnode&utm_medium=feed)

Learning Product Design

9 min read · [engrshege.hashnode.dev](https://engrshege.hashnode.dev/ep-28-css-3?utm_source=hashnode&utm_medium=feed)

[Binay Maharjan](https://hashnode.com/@Viney) · [Sep 24, 2023](https://hashnode.com/posts/popular-font-size-units-px-rem-and-em/650fcbd7f4deddd9e421e96b)

### [Popular font size units px, rem and em.](https://binay.hashnode.dev/popular-font-size-units-px-rem-and-em?utm_source=hashnode&utm_medium=feed)

When it comes to setting font sizes in CSS, there are a few different units that you can use. The three most popular units are: px (pixels) em (ems) rem (root ems) Browser default base font size 16px. Pixels (px) Pixels are the most basic unit o...

5 min read · [binay.hashnode.dev](https://binay.hashnode.dev/popular-font-size-units-px-rem-and-em?utm_source=hashnode&utm_medium=feed)
