Css Circles

Hmmm with the cool features of  CSS 3.0 we can draw shapes as well.Here you will find a simple example to create a circle using a div tag and Css.


.tabCircle
{
border-radius:90px; /*border radius should be half width and height*/
-moz-border-radius: 70px;
        -webkit-border-radius: 70px; 
width:175px;
height:175px;
text-align:center;
line-height:175px;
color:white;
font-weight:bolder;
cursor:pointer;
margin: 5px;
}

You can vary the size of the circle using the width height and border-radius property.

Click Here for live Demo: CSS Circles Demo

References: 
Hmmm well i refered many sites but the ones which helped me a lot are
https://css-tricks.com/examples/ShapesOfCSS/
http://www.css3shapes.com/

Comments

Popular posts from this blog

Session Storage Methods with Expiry

Install Node.js without admin rights

Create a lean React Solution using Typescript