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

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

Discussion

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

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

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

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

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