Scrollbars on block elements

overflow-block

Specify how to handle a block element that has too much text to fit inside its width or height.

Property values

This property is the same as overflow except that it applies only to block level elements. (Not all browsers support this property.)

Use one of these keywords:

visible The text simply overflows the boundaries and overruns whatever else is there.
hidden The text is clipped at the right and bottom boundaries and is not visible.
scroll Vertical and horizontal scrollbars are always visible, but are only enabled if the text is too wide or too high to fit.
auto If the text fits, no scrollbars are shown. If the text is too wide or too high to fit, scrollbars are shown and enabled.

Examples

overflow-block: scroll;
overflow-block
0

style > position > overflow-blockScrollbars on block elements

🔗 🔎