CSS block-size

Previous Next

Demo of the different values of the block-size property.

Click the property values below to see the result:

block-size: 10px;
block-size: 100px;
block-size: auto;
block-size: 20%;
block-size: 80%;
See this blue div element with different block-size values.
See this blue div element with different block-size values.
See this blue div element with different block-size values.
See this blue div element with different block-size values.
See this blue div element with different block-size values.

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