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.

Informations

# Description
Default Value auto
Inherited no
Animatable yes
Version CSS3
JavaScript syntax object.style.blockSize="100px"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
block-size

Syntax

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.