Javascript Reference
Categories: STYLE

javascript STYLE clip

@Aug. 15, 2009, 12:40 p.m.
clip Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

 

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. Available in IE as a property of the style and runtimeStyle objects only.

 
Example
 
document.getElementById("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. 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.

Under moderation.
fyreropafeh70 - 2015-08-03

Powered by Linode.