clipclip*
*Contents  *Index  *Topic Contents
*Previous Topic: clear
*Next Topic: color

clip

Description

Defines a clipping region shape and size for a positioned element.

The clipping region defines the part of the element that is visible. Any part of the element that is outside the clipping region is transparent. Any coordinate can be replaced by the value auto, which causes the clipping rectangle to match the element's opposite side. The default value is to clip to expose the entire element. Note the order of the values: clip:rect(0,0,50,50) would render the element invisible, as it would set both the top and the right positions of the clipping region to 0. To achieve a 50-by-50 view port, the syntax should be clip:rect(0, 50, 50, 0).

Syntax

{ clip: shape | auto }

Syntax

shape:rect (top | right | bottom | left)

Remarks

<top>, <right>, <bottom>, and <left> specify either auto or a length value.

Remarks

This attribute is not inherited.

Applies To

DIV, TEXTAREA, SPAN, INPUT type=button, FIELDSET, IMG, MARQUEE, INPUT, TABLE

Scripting Property

clip


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.