Name
clip
Synopsis
This is used
to define a clipping rectangle inside of which the content of an
absolutely positioned element is visible. Content outside this
clipping area is treated according to the value of
overflow
. The clipping area can be smaller or
larger than the content area of the element.
Values:
rect(
top
,
right
,
bottom
,
left
)
|
auto
| inherit
Initial value:
auto
Applies to:
absolutely positioned elements (in
CSS2, clip
applied to block-level and replaced elements)
Inherited:
no
Computed value:
for a rectangle, a set of four computed lengths representing the edges of the clipping rectangle; otherwise, as specified
Get Cascading Style Sheets: The Definitive Guide, Second 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.