Wednesday, August 28, 2013

How to Make Oval Shape Using CSS

Here full CSS code to make oval shape using only CSS
#oval {
width: 200px;
height: 100px;
background: red;
-moz-border-radius: 100px / 50px;
-webkit-border-radius: 100px / 50px;
border-radius: 100px / 50px;
}

/* Cleaner, but slightly less support: use "50%" as value */

Result:


How to Make Oval Shape Using CSS

Disqus Comments