Clipping Areas
When the overflow of an absolutely positioned element box
is set to hidden
, scroll
, or auto
, the CSS specification allows you to
restrict which part of the content is visible by creating a
clipping area for the element. A clipping area is a
rectangular area—like the mat in a picture frame—that lets the content
show through. Other shapes may be included in future CSS versions.
Specify the size and position of the clipping area with the clip
property.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.