property

overflow-clip-margin — CSS reference

Extends the overflow clip edge for overflow: clip. A visual box keyword selects the starting edge; a nonnegative length extends it. Initial 0px from the padding box; not inherited. It does not make the element scrollable or enlarge its layout size.

Formal Syntax & Structure

css syntaxcss
<visual-box> || <length [0,∞]> (core Level 3 grammar)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS sizing and overflow lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a{width:100px;height:60px} #b{width:180px;height:180px;background:linear-gradient(teal,white)} #a{overflow:clip;overflow-clip-margin:12px}</style><body><div id="a" tabindex="0" aria-label="Scrollable example" class="sample"><div id="b">Wide and tall content</div></div></body></html>
CSS Reference