property

Block step size — CSS reference

Experimental draft: Proposes snapping a block’s outer size to multiples of a positive length, including per-fragment behavior. Negative lengths are invalid. A known explicit size can be rounded with round(), but this does not measure intrinsic content or collapsed margins.

Formal Syntax & Structure

css syntaxcss
block-step-size: 24px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>block-step-size</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{block-size:round(up,53px,24px);block-step-size:24px}</style><body><div id="a" style="background:#ccddee">Known size</div><div id="b"></div></body></html>
CSS Reference