Lesson 31 of 50
cssCSS Shapes – Non‑Rectangular Layout
8 mins
Course progress62%
What you'll learn
Keep this idea in mind as you work through the lesson.
Lesson 31 of 50
css8 mins
Keep this idea in mind as you work through the lesson.
The shape-outside property lets text flow around a custom shape.
.floating {
float:left; width:200px; height:200px; shape-outside:circle(50% at 50% 50%);
clip-path:circle(50% at 50% 50%);
}
<img src="avatar.jpg" alt="" class="floating" />
<p>Lorem ipsum…</p>