How to create empty circle with CSS ? Last Updated : 14 Oct, 2024 Comments Improve Suggest changes Like Article Like Report Creating an empty circle with CSS means styling an HTML element (like a div) to appear as a circular shape. This is done by setting equal width and height, adding a border, and applying border-radius: 50% to form the circle.Creating an Empty Circle By Using border-radius Propertythe border-radius property involves setting a div element's width and height to equal values, applying a border for the outline, and using border-radius: 50% to transform the square into a circle.Syntaxelement { border: 1px solid color; border-radius: 50%; }Example 1: In this example, we create an empty circle using CSS. The .circle class styles a div with a specified width, height, border, and border-radius of 50% to form the circular shape. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> How to create empty circle with CSS? </title> <style> .circle { width: 200px; height: 200px; border: 1px solid black; border-radius: 50%; } </style> </head> <body> <h3> Creating Empty Circle by Using CSS </h3> <div class="circle"></div> </body> </html> Output:createing empty circle with CSSExample 2: In this example, we create a circle using CSS. The .circle class styles the div element with a width, height, and border-radius of 50% to form the circular shape. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> How to create empty circle with CSS? </title> <style> .circle { width: 200px; height: 200px; background-color: green; border-radius: 50%; } </style> </head> <body> <h3> Create Empty Circle By Using CSS </h3> <div class="circle"></div> </body> </html> Output: Empty circle by Using Css Example Output Comment More infoAdvertise with us Next Article How to create empty circle with CSS ? V vkash8574 Follow Improve Article Tags : Web Technologies CSS CSS-Questions Similar Reads How to Create Circle with Text in Tailwind CSS ? To create a circle with text inside using Tailwind CSS, a utility-first framework that simplifies styling. Using Tailwind's predefined classes, you can quickly design circular elements, center the text inside, and customize the appearance all without writing custom CSS.Table of ContentCircle with te 2 min read How to Create Circle Loading Animation Effect using CSS ? In this article, we will see how to create a circle-loading animation using HTML and CSS, along with understanding its basic implementation through the example. Generally, Loading Animation is utilized to wait for the content to be fully loaded on the webpage. If some pages don't contain the loader, 6 min read How to create a basic empty HTML canvas ? HTML Canvas: The canvas is an element in HTML called <canvas> element, and it is used to draw graphics using JavaScript. It is only a container for graphics. You must use JavaScript to draw the graphics, and it has several methods for drawing paths, boxes, circles, text, and adding images. A c 1 min read How to create a Circular/Rounded images using CSS ? In this article, we will create a rounded image with CSS. It can be done by using the CSS border-radius property. This property is mainly used to make round shapes. It contains a numeric value in the form of pixels. Example 1: HTML <!DOCTYPE html> <html> <head> <style> img { 1 min read How to create shape using CSS clipping ? You can easily create shapes using the clip-path property in CSS. Actually clip-path property lets you clip an element to a basic shape. The basic shape like circle, ellipse, the polygon can be achieved using the <basic-shape> property value of clip-path which will be discussed further in this 3 min read Like