property
inset-block — CSS reference
Shorthand for inset-block-start and inset-block-end. One value sets both; two values set start then end. Initial auto for each longhand; not inherited. Only positioned elements use offsets; percentages resolve against the corresponding containing-block dimension. Auto leaves offset resolution to positioning rules.
Formal Syntax & Structure
css syntaxcss
[ <length-percentage> | auto ]{1,2}Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS logical layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a,#b,#c{box-sizing:content-box;writing-mode:horizontal-tb;width:100px;height:80px} #c{writing-mode:vertical-rl;direction:ltr} #a,#b,#c{position:absolute;width:auto;height:auto;inset-block:8px 16px}</style><body><div id="a" class="sample" dir="ltr">Start</div><div id="b" class="sample" dir="rtl" lang="fa">شروع</div><div id="c" class="sample" lang="ja">縦書き</div></body></html>