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

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. CSS Basics to Advanced

Lesson 31 of 50 · css

CSS Shapes – Non‑Rectangular Layout

Duration: 8 mins

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>
Previous: Advanced Flexbox – Wrapping & AlignmentNext: CSS Clip‑Path & Masking