How can you created rounded corners using CSS ? code example
Example 1: css rounded corners
/* Set rounded corners with border-radius property */
.class {
border-radius: 4px;
}
.circle {
border-radius: 50%;
}
Example 2: css rounded corners at top only
border-radius: 10px 10px 0 0;
// top-left top-right bottom-right bottom-left.
Example 3: how to round the corners of a div outline in css
div {
outline: auto;
outline-style: round;
}