Visit Mozilla.org

CSS:shape

From MDC

« CSS Reference

[edit] Summary

A shape is a value for CSS property like clip.

[edit] Syntax

 <a_css_property> : rect(<top>, <right>, <bottom>, <left>) ;

[edit] Values

<top>, <bottom>
specify offsets from the top border edge of the box.
<right>, <left>
specify offsets from the left border edge of the box normally (ie, in left-to-right text). For a box in right-to-left text they will indicate offset from right border edge.

[edit] Examples

 img.clip04 { 
   clip: rect(10px, 20px, 20px, 10px);
 }

[edit] Notes

[edit] Specifications

[edit] Browser compatibility

[edit] See also