CSS
Blog
Tricks
Use box-decoration-break
to control how styles are applied when an element breaks into multiple lines.
When changing overflow: hidden
to overflow: auto
or overflow: scroll
, add scrollbar-gutter: stable
to the container to prevent the layout from shifting.