Example
A simple block-size property example:
Laboratory
description & Usage
To determine the size of an element in the block range, they use the block-size property.
Browser compatibility and Support
| # |
Chrome |
Edge |
Firefox |
Safari |
Opera |
| block-size |
|
|
|
|
|
Values
| Values |
Description |
|
auto
|
By default, it measures the block area.
|
|
length
|
It calculates the size of the block in centimeters, pixels, etc.
|
|
%
|
Calculates the size of the block area in terms of percentage.
|
|
initial
|
Adds this value to its default property.
|
|
inherit
|
It inherits this value from its parent tag.
|