property
overflow-x — CSS reference
Controls overflow on the physical horizontal axis. Initial visible; not inherited. The other axis can affect its computed value. Mixing clip with a scrollable value makes clip compute to hidden.
Formal Syntax & Structure
css syntaxcss
visible | hidden | clip | scroll | autoWorking 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-x:clip;overflow-y:auto}</style><body><div id="a" tabindex="0" aria-label="Scrollable example" class="sample"><div id="b">Wide and tall content</div></div></body></html>