Name
clip — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
Defines a clipping region of a positionable element. The clipping region is the area of the element layer in which content is visible. Clipping may not work properly in Internet Explorer 4 for the Macintosh.
Example
document.all.art2.style.clip = "rect(5px 100px 40px 0)"
Value
Case-insensitive string of either the auto constant or the CSS
clip
attribute setting that specifies the shape
(rect
only for now) and the position of the four
clip edges relative to the original element’s top-left corner.
When specifying lengths for each side of the clipping rectangle,
observe the clockwise order of values: top, right, bottom, left. See
the discussion about length values at the beginning of this chapter.
A value of auto
sets the clipping region to the
block that contains the content. In Internet Explorer, the width may
extend to the width of the next outermost container (such as the
BODY
element).
Default
None.
Get Dynamic HTML: The Definitive Reference 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.