---
title: "Comment by Chris Short on \"🛑 Stop using pixels in CSS\" | Hashnode"
description: "Should we also be using rems for margins, borders, padding, and basically everything else as well? Or just for font size?"
url: "https://hashnode.com/posts/stop-using-pixels-in-css/5f5c5f0eddc3fe5f4f24cbbb/comment/5f60e169c417c20b18b7219c"
---

[Discussion](https://hashnode.com/posts/stop-using-pixels-in-css/5f5c5f0eddc3fe5f4f24cbbb)

Comment [🛑 Stop using pixels in CSS](https://hashnode.com/posts/stop-using-pixels-in-css/5f5c5f0eddc3fe5f4f24cbbb)

[Chris Short](https://hashnode.com/@devcshort)

[Sep 15, 2020](https://hashnode.com/posts/stop-using-pixels-in-css/5f5c5f0eddc3fe5f4f24cbbb/comment/5f60e169c417c20b18b7219c)

Should we also be using **_rems_** for margins, borders, padding, and basically everything else as well? Or just for font size?

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Sep 15, 2020](https://hashnode.com/posts/stop-using-pixels-in-css/5f5c5f0eddc3fe5f4f24cbbb/comment/5f60e169c417c20b18b7219c#reply-5f61051bc417c20b18b72322)

I use it for font-size/margin

But for borders/border-radius and media-queries I still use pixels.

I'm actually not 100% sure on the "best" answer, but this is my gut feeling and it works well.

[Chris Short](https://hashnode.com/@devcshort)

[Sep 16, 2020](https://hashnode.com/posts/stop-using-pixels-in-css/5f5c5f0eddc3fe5f4f24cbbb/comment/5f60e169c417c20b18b7219c#reply-5f6232fb018bef1561b42a0d)

[Chris Bongers](https://hashnode.com/@dailydevtips) I was thinking the same thing. Border radius would probably give some wacky results if using rems. And media queries probably wouldn't work very well either. Thanks for the response :)
