Please tell me the code for rounded corner DIV

tinyprogram's Avatar, Join Date: Jan 2011
Go4Expert Member
:d
0
pein87's Avatar
Ambitious contributor
Chrome + Safari

-webkit-border-radius: 3px;

Firefox

-moz-border-radius: 3px;

Standard

border-radius: 3px;
shabbir like this
0
seoabhisek's Avatar
Banned
actuuly buddy u didn't mentioned the language in which u require the code
0
mialuzzatto's Avatar, Join Date: Aug 2015
Ambitious contributor
Hello,

CSS attributes to your element to make its corner round.
Code:
selector {
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border: 1px solid;
}
To make only Top Left corner rounded, use following CSS.
Code:
selector {
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    border: 1px solid;
}
Similarly use topleft, top-left, bottom-right, bottomright etc for rounding off the corners of the DIV.

---
Regards,
Mia Luzzatto