Read : Browser Specific Definitions.
The post is created in Example and Explanations order.
Let's start with,
The post is created in Example and Explanations order.
Let's start with,
- .krish{
border:3px solid white;
-moz-border-radius:35px;
border-radius:35px;
}
Output - .krish{
border:3px solid white;
-moz-border-radius-topleft:35px;
border-radius-topleft:35px;
}
Output - .krish{
border:3px solid white;
-moz-border-radius-bottomright:35em;
border-radius-bottomright:35em;
}
Output - .krish{
border:3px solid white;
-moz-border-radius-bottomright:35pt;
border-radius-bottomright:35pt;
}
Output - .krish{
border:3px solid white;
-moz-border-radius:35px 0px 35px 0px;
border-radius:35px 0px 35px 0px;
}
Output - .krish{
border:3px solid white;
}
Output
Explanations :-
- border-radius:35px; will yield rounded border for all sides
- border-radius-topleft:35px; will yield rounded border at the Top left side and note that the type is "px" pixel.
- border-radius-bottomright:35em; will yield rounded border at the Bottom Right and note that the type is em where 1em = 16pt "pt" is points
- border-radius:35px 0px 35px 0px; will yield rounded borders at topleft and bottom right postitions. the general syntax is
border-radius:topleft topright bottomright bottomleft;It can be in any type.
- When you don't mention border-radius property, there will be no rounds, but there will be square borders