How to Make a Semicircle (Right) with CSS

Learn two clean CSS techniques to draw a right-facing semicircle and see a live preview you can copy and paste into your project. Live Preview: Semicircle (Right) Method 1: Using Border-Radius Method 2: Using Clip-Path on a Circle How This Works In the border-radius method, the element’s height is the circle’s diameter and its width … Read more

How to Make a Semicircle (Left) with CSS

Learn how to draw a clean left-facing semicircle in pure CSS. Below are two easy methods you can copy, plus tips for centering content inside the shape. Live Preview: Semicircle (Left) Method 1: Using border-radius (Corner Radii) Method 2: Using clip-path (SVG path) How This Works With border-radius, you set the element’s height to the … Read more

How to Make a Semicircle (Bottom) with CSS

Learn two reliable CSS techniques to draw a clean bottom semicircle and see a live preview you can copy-paste. Both approaches are lightweight, responsive-friendly, and easy to customize. Live Preview: Semicircle (Bottom) Method 1: Using Border-Radius (Single Element) Method 2: Clip a Circle with Overflow (Pseudo-Element) How This Works Border-radius lets you round just the … Read more

How to Make a Semicircle (Top) with CSS

Want a clean half-circle that’s flat on the bottom and curved on top? Here are two reliable CSS techniques to draw a top semicircle, plus tips to center content inside and customize it quickly. Live Preview: Semicircle (Top) Method 1: Using Border-Radius Method 2: Using clip-path (Half of a Circle) How This Works The border-radius … Read more

How to Make an 8-Point Star with CSS

Learn two easy CSS techniques to draw a crisp 8-point star, complete with a live preview, copy‑paste code, and centering tips for adding text or icons inside. Live Preview: 8-Point Star Method 1: Using CSS clip-path .star8-clip { width: 140px; aspect-ratio: 1; background: #cd5454; /* 8-point star via 16-point polygon (outer/inner alternating) */ clip-path: polygon( … Read more

How to Make a 6-Point Star with CSS

Learn two easy ways to draw a crisp 6-point star with pure CSS, perfect for badges, icons, and decorative UI elements, in just a few lines of code. Live Preview: 6-Point Star Method 1: Using clip-path (Polygon) Method 2: Using Border Triangles (Hexagram) How This Works The clip-path method draws a 12-vertex polygon that alternates … Read more

How to Make a 5-Point Star with CSS

Learn two reliable ways to draw a crisp 5-point star using pure CSS. Below is a live preview, plus copy‑paste snippets, centering tips, and quick customization ideas. Live Preview: 5-Point Star Method 1: Using clip-path (Polygon) Method 2: Using Borders and Pseudo-elements How This Works The clip-path method cuts a star silhouette out of a … Read more

How to Make a Decagon with CSS

A decagon is a ten-sided polygon that you can draw cleanly with modern CSS. Below are two reliable techniques plus a live preview and simple ways to center content inside the shape. Live Preview: Decagon Method 1: Using clip-path (Polygon) Method 2: Using CSS Mask (SVG Data URL) How This Works clip-path cuts the element … Read more

How to Make a Nonagon with CSS

Learn two reliable ways to draw a clean, regular nonagon (9-sided polygon) with pure CSS, plus quick tips to center content inside and customize the result. Live Preview: Nonagon Method 1: Using CSS clip-path Method 2: Using an SVG Mask How This Works clip-path: polygon(…) clips the element to the nine coordinates provided, effectively drawing … Read more

How to Make an Octagon with CSS

Learn two easy, production-ready ways to draw a clean, regular octagon with pure CSS. This guide includes a live preview, copy‑paste snippets, centering techniques, and quick customization tips. Live Preview: Octagon Method 1: Using CSS clip-path Method 2: Using Borders (Top/Bottom Trapezoids) How This Works clip-path draws an eight-point polygon that trims the element to … Read more