How to make a circle or elipsis in pure CSS?

Why would one want to make a circle or elipsis in just pure CSS? Because you can easily change the color and size using CSS and it looks great even when upscaled!
And how to do it, well, it’s extremely simple- let’s create a small rectangle:

<div style="width:70px; height:50px; background-color: red"></div>

and then let’s add rounded corners to it:

-moz-border-radius: 200px;
-webkit-border-radius: 200px;
-o-border-radius: 200px;
border-radius: 200px

The result:

 

Easy, right?

This entry was posted on Tuesday, April 5th, 2011 at 8:51 pm and is filed under CSS. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “How to make a circle or elipsis in pure CSS?”

  1. Feroz Says:

    hi

    Its not working on IE

  2. admin Says:

    No, it’s not. Many things don’t work in IE, because every IE is outdated when it is released.
    Please try this: http://fetchak.com/ie-css3/

Leave a Reply

 
TopOfBlogs Web Development & Design Blogs