clipclip*
*Contents  *Index  *Topic Contents
*Previous Topic: clientY
*Next Topic: closed

clip

Description

Sets or retrieves which part of the element is visible.

Syntax

object.style.clip[ = clip]

Remarks

This property 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 that 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).

The property has read/write permission.

Applies To

HTML Tags DIV, FIELDSET, IMG, INPUT, INPUT type=button, MARQUEE, SPAN, TABLE, TEXTAREA
Scripting style

CSS Attribute

clip


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