Hi All,
Ever wondered if you have an option to create rounded div using css. Not in all browsers but the most popular browser i.e., the mozilla has such an option. To have rounded corner for a div we just need to give it as,
#myDivor you can give all in a single line as
{
border:solid 1px black;
-moz-border-radius-bottomleft: 10px;
-moz-border-radius-bottomright:10px;
-moz-border-radius-topleft:10px;
-moz-border-radius-topright:10px;
}
#myDivFor Safari broswer, you can use
{
border: solid 1px black;
-moz-border-radius: 10px;
}
-webkit-border-radius: 10px;or you can specify individually as
-webkit-border-top-right-radius: 10px;For more information, please visit:
-webkit-border-top-leftt-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
http://www.the-art-of-web.com/css/border-radius/
0 comments:
Post a Comment