---
title: "Discussion on \"max-height and height in CSS\" | Hashnode"
description: "Discussion on \"max-height and height in CSS\". The max-height and height properties in CSS are used to control the height of an element, but they have some key differences:\n\nheight: This property sets the exact height of an element. It specifies the height in pixels, percentages, or other length ..."
url: "https://hashnode.com/posts/max-height-and-height-in-css/64a8e1a41dd6c07edea777a8"
---

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

Discussion

# [max-height and height in CSS](https://madhavan.hashnode.dev/max-height-and-height-in-css?utm_source=hashnode&utm_medium=feed)

The max-height and height properties in CSS are used to control the height of an element, but they have some key differences: height: This property sets the exact height of an element. It specifies the height in pixels, percentages, or other length ...

Jul 8, 2023 · 2 min read · madhavan.hashnode.dev  
Read the article

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

## Written by

[Madhavan vv](https://hashnode.com/@Madhavanvv)

@Madhavanvv

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

share my knowledge

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
