{"id":1993,"date":"2014-12-26T07:02:29","date_gmt":"2014-12-26T07:02:29","guid":{"rendered":"http:\/\/www.vishmax.com\/en\/?p=1993"},"modified":"2014-12-27T12:51:25","modified_gmt":"2014-12-27T12:51:25","slug":"how-to-make-circle-in-css","status":"publish","type":"post","link":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/","title":{"rendered":"How to make circle in CSS"},"content":{"rendered":"<p>Here is a simple example of circles which is created by using CSS. It uses CSS border-radius property, and the drawback of this method is don&#8217;t work on IE8 and below because of lack of support for border-radius. But it work fine on modern browsers and hope you will enjoy this example.<\/p>\n<p>Here is the details of code which used to build the CSS circle. You can view a working example on bottom of the post.<\/p>\n<h2>CSS<\/h2>\n<pre lang=\"css\">\r\n.circle {\r\n\tfloat:left;\r\n\twidth: 150px;\r\n\theight: 150px;\r\n\t-moz-border-radius: 50%; \r\n\t-webkit-border-radius: 50%; \r\n\tborder-radius: 50%;\r\n\tmargin:10px;\r\n}\r\n.red {\r\n\tbackground-color: #f43230;\r\n}\r\n.green {\r\n\tbackground-color: #2ecc71;\r\n}\r\n.blue {\r\n\tbackground-color: #2a7fb8;\r\n}\r\n.violet{\r\n\tbackground:#9b59b6;\r\n}\r\n.violet-light{\r\n\tbackground:#666699;\r\n}\r\n.black{\r\n\tbackground:#000;\r\n}\r\n.circle-with-text:after {\r\n\tcontent: \"\";\r\n\tdisplay: block;\r\n\twidth:250px;\r\n\theight:250px;\r\n\tbackground: #4679BD; \r\n\t-moz-border-radius: 50%; \r\n\t-webkit-border-radius: 50%; \r\n\tborder-radius: 50%;\r\n}\r\n.circle-with-text div {\r\n\tfloat:left;\r\n\twidth:100%;\r\n\tpadding-top:50%;\r\n\tline-height:1em;\r\n\tmargin-top:-0.5em;\r\n\ttext-align:center;\r\n\tcolor:white;\r\n}\r\n\r\n<\/pre>\n<h2>HTML<\/h2>\n<pre lang=\"html\">\r\n\r\n\t\t<!-- circles -->\r\n\t\t<div class=\"wrapper\">\r\n\t\t\t\t<div class=\"circle red\"><\/div>\r\n\t\t\t\t<div class=\"circle green\"><\/div>\r\n\t\t\t\t<div class=\"circle blue\"><\/div>\r\n\t\t\t\t<div class=\"circle violet\"><\/div>\r\n\t\t\t\t<div class=\"circle violet-light\"><\/div>\r\n\t\t\t\t<div class=\"circle black\"><\/div>\r\n\t\t<\/div>\r\n\t\t\r\n\t\t<div class=\"wrapper-center\">\r\n\t\t\t\t<div class=\"circle-with-text\"><div>Circle with text<\/div><\/div>\r\n\t\t<\/div>\r\n\t\t<!-- \/circles -->\r\n\r\n\r\n<\/pre>\n<p><a class=\"external-download\" href=\"http:\/\/vishmax.com\/demos\/css-circles.html\" target=\"_blank\">Demo<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a simple example of circles which is created by using CSS. It uses CSS border-radius property, and the drawback of this method is don&#8217;t work on IE8 and below because of lack of support for border-radius. But it work fine on modern browsers and hope you will enjoy this example. Here is the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[44],"tags":[72,67,101,94],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to make circle in CSS - Vishmax.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to make circle in CSS - Vishmax.com\" \/>\n<meta property=\"og:description\" content=\"Here is a simple example of circles which is created by using CSS. It uses CSS border-radius property, and the drawback of this method is don&#8217;t work on IE8 and below because of lack of support for border-radius. But it work fine on modern browsers and hope you will enjoy this example. Here is the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\" \/>\n<meta property=\"og:site_name\" content=\"Vishmax.com\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-26T07:02:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-12-27T12:51:25+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93\"},\"headline\":\"How to make circle in CSS\",\"datePublished\":\"2014-12-26T07:02:29+00:00\",\"dateModified\":\"2014-12-27T12:51:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\"},\"wordCount\":86,\"publisher\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#organization\"},\"keywords\":[\"Code Library\",\"CSS\",\"Examples\",\"Web Design Tips\"],\"articleSection\":[\"Labs\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\",\"url\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\",\"name\":\"How to make circle in CSS - Vishmax.com\",\"isPartOf\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#website\"},\"datePublished\":\"2014-12-26T07:02:29+00:00\",\"dateModified\":\"2014-12-27T12:51:25+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.vishmax.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to make circle in CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#website\",\"url\":\"http:\/\/www.vishmax.com\/en\/\",\"name\":\"Vishmax.com\",\"description\":\"Software Company in Calicut for Web Design and eCommerce\",\"publisher\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.vishmax.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#organization\",\"name\":\"Vishmax.com\",\"url\":\"http:\/\/www.vishmax.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png\",\"contentUrl\":\"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png\",\"width\":150,\"height\":50,\"caption\":\"Vishmax.com\"},\"image\":{\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g\",\"caption\":\"admin\"},\"url\":\"http:\/\/www.vishmax.com\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to make circle in CSS - Vishmax.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/","og_locale":"en_US","og_type":"article","og_title":"How to make circle in CSS - Vishmax.com","og_description":"Here is a simple example of circles which is created by using CSS. It uses CSS border-radius property, and the drawback of this method is don&#8217;t work on IE8 and below because of lack of support for border-radius. But it work fine on modern browsers and hope you will enjoy this example. Here is the [&hellip;]","og_url":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/","og_site_name":"Vishmax.com","article_published_time":"2014-12-26T07:02:29+00:00","article_modified_time":"2014-12-27T12:51:25+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/#article","isPartOf":{"@id":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/"},"author":{"name":"admin","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93"},"headline":"How to make circle in CSS","datePublished":"2014-12-26T07:02:29+00:00","dateModified":"2014-12-27T12:51:25+00:00","mainEntityOfPage":{"@id":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/"},"wordCount":86,"publisher":{"@id":"http:\/\/www.vishmax.com\/en\/#organization"},"keywords":["Code Library","CSS","Examples","Web Design Tips"],"articleSection":["Labs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/","url":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/","name":"How to make circle in CSS - Vishmax.com","isPartOf":{"@id":"http:\/\/www.vishmax.com\/en\/#website"},"datePublished":"2014-12-26T07:02:29+00:00","dateModified":"2014-12-27T12:51:25+00:00","breadcrumb":{"@id":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.vishmax.com\/en\/labs\/how-to-make-circle-in-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.vishmax.com\/en\/"},{"@type":"ListItem","position":2,"name":"How to make circle in CSS"}]},{"@type":"WebSite","@id":"http:\/\/www.vishmax.com\/en\/#website","url":"http:\/\/www.vishmax.com\/en\/","name":"Vishmax.com","description":"Software Company in Calicut for Web Design and eCommerce","publisher":{"@id":"http:\/\/www.vishmax.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.vishmax.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/www.vishmax.com\/en\/#organization","name":"Vishmax.com","url":"http:\/\/www.vishmax.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png","contentUrl":"https:\/\/www.vishmax.com\/en\/wp-content\/uploads\/2023\/03\/logo-vishmax.png","width":150,"height":50,"caption":"Vishmax.com"},"image":{"@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/785fa94b56eb17ae7706d30777d6ab93","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vishmax.com\/en\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/e218268870406c917d20b442936d9e68?s=96&d=monsterid&r=g","caption":"admin"},"url":"http:\/\/www.vishmax.com\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/posts\/1993"}],"collection":[{"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/comments?post=1993"}],"version-history":[{"count":0,"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/posts\/1993\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/media?parent=1993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/categories?post=1993"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.vishmax.com\/en\/wp-json\/wp\/v2\/tags?post=1993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}