clipTop Property

Select an amount to clip the top of the image. The alert reads the currentStyle.clipTop of the image, which is initially set in an embedded stylesheet, and then changed through scripting. Don't forget that the position must be set to absolute for the clip property to work.

Sphere image

Pick an amount to clip the right:






[Right-click and choose View Source from the shortcut menu.]

© 2007 Microsoft Corporation. All rights reserved. Terms of use.