The CSS shape-outside property allows text to wrap around an element in different shapes instead of just a rectangle, such as circles, ellipses, or polygons. This is particularly useful for creative layouts and visually striking designs.
With the circle() function, we can easily assign a circular shape to a floating element, around which text will automatically wrap. The clip-path property is often used alongside it to visually display the shape.
This example shows how text wraps around a circular image.
With the polygon() function, we can define custom shapes by specifying coordinates. This allows text to flow around unusual, unique shapes.
In this example, text flows around a polygonal shape defined with the polygon() function.
Some advice for effective use of the shape-outside property:
Please sign in to ask Lara about CSS shape-outside.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.