Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.36 KB

index.md

File metadata and controls

50 lines (34 loc) · 2.36 KB
title slug page-type spec-urls
CSS shapes
Web/CSS/CSS_shapes
css-module

{{CSSRef}}

The CSS shapes module describes geometric shapes that can be in CSS. For the Level 1 specification, CSS shapes can be applied to floating elements. The specification defines a number of different ways to define a shape on a floated element, causing wrapping lines to wrap round the shape rather than following the rectangle of the element's box.

Basic example

The example below shows an image that has been floated left, and the shape-outside property applied with a value of circle(50%). This creates a circle shape, and the content wrapping the float now wraps around that shape. This changes the length of the wrapping text's line boxes.

{{EmbedGHLiveSample("css-examples/shapes/overview/circle.html", '100%', 720)}}

Reference

Properties

  • {{cssxref("shape-image-threshold")}}
  • {{cssxref("shape-margin")}}
  • {{cssxref("shape-outside")}}

Data types

  • {{cssxref("<basic-shape>")}}

Guides

Specifications

{{Specifications}}

See also