property

Block step — CSS reference

Experimental draft: Proposed shorthand groups step length, adjustment location, alignment and rounding policy; omitted components revert to their initial settings. This draft has unresolved design questions. Explicit symmetric padding can approximate the result for known dimensions.

Formal Syntax & Structure

css syntaxcss
block-step: 24px padding-box center up;

Working Example

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