--- id: css-image-shapes title: "CSS Image Shapes" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["clip-path", "shape-outside", "image clipping", "circle() clip", "polygon() clip", "ellipse() clip"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["css", "web", "frontend", "w3schools", "clip-path", "shape-outside", "images"] raw_sources: ["https://www.w3schools.com/css/css3_image_shapes.asp"] applied_in: [] github_commit: "" --- # [[CSS Image Shapes]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) With CSS it is easy to shape (clip) images to circles, ellipses, and polygons using the `clip-path` property, while `shape-outside` lets inline content wrap around the shaped image. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`clip-path`** β€” lets you clip an element to a basic shape or to an SVG source. [S1] - **`shape-outside`** β€” lets you define a shape for the wrapping of the inline content. [S1] - **`circle()`** β€” defines a circle with a radius and a position. [S1] - **`ellipse()`** β€” defines an ellipse with two radii, x and y. [S1] - **`polygon()`** β€” defines a polygon. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Clip to a basic shape** β€” apply a shape function (`circle()`, `ellipse()`, `polygon()`) as the value of `clip-path` on an image. [S1] - **Reposition the clip** β€” use the `at` keyword inside a shape function (e.g. `circle(50% at right)`) to move the clip's center. [S1] - **Wrap text around a shape** β€” combine `float` with `clip-path` (visual clip) and `shape-outside` (the wrap geometry) so inline content flows around the shaped image. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **Shaping images** β€” With CSS it is easy to shape (clip) images to circles, ellipses and polygons. [S1] **Circle with `clip-path`** [S1] ```css img { clip-path: circle(50%); } ``` **Circle positioned to the right** β€” the `at` keyword positions the circle. [S1] ```css img { clip-path: circle(50% at right); } ``` **Circle with `shape-outside`** β€” the `shape-outside` property lets you define a shape for the wrapping of the inline content. [S1] ```css img { float: left; clip-path: circle(40%); shape-outside: circle(45%); } ``` **Ellipse with `clip-path`** β€” the `ellipse()` function defines an ellipse with two radii x and y. [S1] ```css img { clip-path: ellipse(50% 35%); } ``` **Ellipse positioned to the right** [S1] ```css img { clip-path: ellipse(50% 35% at right); } ``` **Ellipse with `shape-outside`** [S1] ```css img { float: left; clip-path: ellipse(40% 50%); shape-outside: ellipse(45% 50%); } ``` **Polygon with `clip-path`** β€” the `polygon()` function defines a polygon. [S1] ```css img { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); } ``` **Properties and functions reference** [S1] | Property / Function | Description | |---|---| | `clip-path` | Lets you clip an element to a basic shape or to an SVG source | | `shape-outside` | Lets you define a shape for the wrapping of the inline content | | `circle()` | Defines a circle with a radius and a position | | `ellipse()` | Defines an ellipse with two radii x and y | | `polygon()` | Defines a polygon | ## πŸ› οΈ 적용 사둀 (Applied in summary) The page's own examples are the applied cases: circular/elliptical/polygonal image clips, and text-wrapping layouts where a floated image uses `shape-outside`. No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Clip an image to a centered circle (language: CSS): ```css img { clip-path: circle(50%); } ``` Wrap inline text around a circular image (language: CSS): ```css img { float: left; clip-path: circle(40%); shape-outside: circle(45%); } ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[CSS Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[CSS Object Fit]], [[CSS Masking PNG]], [[CSS Borders]] - **μ°Έμ‘° λ§₯락:** Referenced when cropping images to non-rectangular shapes or wrapping text around floated images. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” CSS Image Shapes β€” https://www.w3schools.com/css/css3_image_shapes.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "CSS Image Shapes" page (Astra wiki-curation, P-Reinforce v3.1 format).