Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS clip definition

Browser support
IEFFOpSaf

Type:

Syntax

clip: auto | <shape>

Description

Defines the shape of an element.

Values

Value Description
auto Default. The browser determines the shape of the element.
shape Defines the shape of the element. Syntax: rect (top, right, bottom, left)

Version information

Available since CSS 2.0.

Example

[Try this example yourself]
<img border="0" src="http://www.glubase.com/images/glubase2.gif" style="position: absolute; clip: rect(0px, 50px, 100px, 0px);">

Output

  • Comments

No comments added.