---
title: "Discussion on \"CSS Heights: Tips for Styling HTML Elements\" | Hashnode"
description: "Discussion on \"CSS Heights: Tips for Styling HTML Elements\". This blog covers tips and what to avoid in setting your html elements' heights"
url: "https://hashnode.com/posts/css-heights-tips-for-styling-html-elements/64131add91f8c59eae352ffb"
---

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

Discussion

# [CSS Heights: Tips for Styling HTML Elements](https://kimberlypangilinan.hashnode.dev/css-heights-tips-for-styling-html-elements?utm_source=hashnode&utm_medium=feed)

This blog covers tips and what to avoid in setting your html elements' heights

Mar 16, 2023 · 3 min read · kimberlypangilinan.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css-flexbox](https://hashnode.com/tag/css-flexbox)
-   [#css-height-width-border-radius-padding-margin-box-shadowtext-shadow-part-01](https://hashnode.com/tag/css-height-width-border-radius-padding-margin-box-shadowtext-shadow-part-01)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Kimberly Pangilinan](https://hashnode.com/@KimberlyPangilinan)

@KimberlyPangilinan

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

Aspiring Web Developer

Hi there! I am a passionate front-end developer and designer, who wants to share my journey as I learn and deep dive into tech.

## Responses 1

Markdown supported · ⌘↵ to post

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