/* Set rounded corners with border-radius property */ .class { border-radius: 4px; } .circle { border-radius: 50%; }
#roundCornerID { border-radius: 30%; width: 200px; height: 150px; }
.div { /*Top Left (TL) Top Right (TR) Bottom Right (BR) Bottom Left (BL)*/ border-radius: 15px 50px 30px 5px; /*TL TR BR BL*/ border-radius: 15px 50px 30px; /*TL TRBL BR*/ border-radius: 15px 50px; /*TLBR TRBL*/ border-radius: 15px; /*All corners*/ }
/* TL = Top Right, BR = Bottom Right... etc */ border-radius: 15px 50px 30px 5px; TL TR BR BL border-radius: 15px 50px 30px; TL BL+TR BR border-radius: 15px 50px; TL+BR TR+BL border-radius: 420px; all corners
#rcorners { border-radius: 25px; }
-webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;
border-radius: 5px; /* The corners will be round */
.abcclass { border-radius: 0px; // for no radius }
element:focus{border-radius:25px;}