# CSS Height and Width

# **CSS Height and its Properties**

The CSS `height` and `width` properties are used to set the height and width of an element.

The CSS `max-width` property is used to set the maximum width of an element.

<iframe src="https://giphy.com/embed/r0QJ1T917UaxzP0otK" width="480" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/Immofanten-bauarbeiter-immofanten-anthonyfanty-r0QJ1T917UaxzP0otK">via GIPHY</a></p>

# CSS Setting height and width

The `height` and `width` properties are used to set the height and width of an element.

Example 👇
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669438286182/1eX1ToPHq.png align="left")

CSS height and width Values👇 
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669438309618/gKFu7gxsm.png align="left")

Setting max-width👇
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669438330454/QUlwqufLX.png align="left")

Setting CSS Min-height👇
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669438352933/Vz-LcKzt5.png align="left")

All CSS Dimension Properties👇
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669438382578/18oeUsMfJ.png align="left")

-----------------------------------------------------------------------------------------------
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666336375150/5HqI8zNVh.png align="left")> 
Download our HTML & CSS Visual Treat! ebook Here: 
[Click here](https://codemarch.gumroad.com/l/hxazr)

