CSS height

Previous Next

Demo of the different values of the height property.

Click the property values below to see the result:

height: auto;
height: 50px;
height: 200px;
height: 50%;
height: 100%;
See this blue div element with different height values.
See this blue div element with different height values.
See this blue div element with different height values.
See this blue div element with different height values.
See this blue div element with different height values.

Play more with the code in our Tryit yourself editor: Try it Yourself ❯