clipTop property (currentStyle)
Returns the top coordinate of the clipping region relative to the upper left corner of the object.
A clipping region for an element can be set or retrieved with the clip style property, in a shorthand form. In Internet Explorer, the components of the clipping region can be retrieved with the clipLeft, clipTop, clipRight and clipBottom properties.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that represents the top coordinate or the 'auto' string constant
One of the following values:
|The top side is not clipped.|
|A floating-point number followed by a units designator (cm, mm, in, pt, or pc, em, ex, or px).|
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the clipTop property:
Did you find this example helpful?
User Contributed Comments