Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

CSS Shapes – Non‑Rectangular Layout | CSS Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. CSS Course

Lesson 31 of 50

·css

CSS Shapes – Non‑Rectangular Layout

8 mins

Course progress62%

What you'll learn

Keep this idea in mind as you work through the lesson.

1 point
  • `clip-path` visually crops the element; `shape-outside` determines the text flow. * Works on floated elements only. * Browser support is good in Chrome, Edge, Safari; partial in Firefox.

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%);
}

Example: Circular image with text wrap

<img src="avatar.jpg" alt="" class="floating" />
<p>Lorem ipsum…</p>
Make it stickPractice what you've learned1 quiz · 6 practical tests · Optional activities from CSS CourseBrowse activities
Previous lessonAdvanced Flexbox – Wrapping & AlignmentContinue to lesson 32CSS Clip‑Path & MaskingBack to CSS Course curriculum