CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: rect() CSS function

The rect() Function

AVOIDObsolete

The rect() function (of the <shape> data type) produces a region in the shape of a rectangle.

Syntax for rect()
 Syntax
CSSrect( <top>, <right>, <bottom>, <left> ), where <top>, <right>, <bottom>, and <left> = "<length> | auto"

Notes

  • Note that the length values are separated with commas (although some browsers may also support separation with spaces).
  • This function was part of the deprecated clip property. Use the clip-path property and its values instead.

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem