---
title: "Comment by Anthony Fung on \"CSS Heights: Tips for Styling HTML Elements\" | Hashnode"
description: "Nice writeup! I agree with how using px can lead to unexpected results. In addition to the units mentioned I&#39;d also recommend considering em, which is based"
url: "https://hashnode.com/posts/css-heights-tips-for-styling-html-elements/64131add91f8c59eae352ffb/comment/6413856ca22636ad25b27006"
---

[Discussion](https://hashnode.com/posts/css-heights-tips-for-styling-html-elements/64131add91f8c59eae352ffb)

Comment [CSS Heights: Tips for Styling HTML Elements](https://hashnode.com/posts/css-heights-tips-for-styling-html-elements/64131add91f8c59eae352ffb)

[Anthony Fung](https://hashnode.com/@anthonyf)

[Mar 16, 2023](https://hashnode.com/posts/css-heights-tips-for-styling-html-elements/64131add91f8c59eae352ffb/comment/6413856ca22636ad25b27006)

Nice writeup!

I agree with how using px can lead to unexpected results. In addition to the units mentioned I'd also recommend considering em, which is based on multiples of the current font size. So 1em is the current font size, 2em is twice as big, and so on.
