May 2003
Intermediate to advanced
480 pages
10h 9m
English
This property clips the visible region of the absolute- or fixed-positioned element(s) to which it is applied. The element occupies the same amount of space on the page as usual, but only the area specified by this property is displayed.
In contrast to the overflow property, this property only affects the visible area of an element (including its padding, borders, etc.). The size and position of an element for layout purposes is not affected by this property.
Inherited: No
See also: Section B.77overflow
The current CSS specification allows only for rectangular clipping regions. You specify such a region by wrapping four measurement values in the CSS rect() wrapper as follows:
clip: rect(top right bottom left);
Read now
Unlock full access