/* Set rounded corners with border-radius property */
.class {
border-radius: 4px;
}
.circle {
border-radius: 50%;
}
/* Use border-radius property */
.class {
border-radius: 5px;
}
.circle {
border-radius: 50%;
}
.class:hover{border-radius: 20%;}
/* The syntax of the first radius allows one to four values */
/* Radius is set for all 4 sides */
border-radius: 10px;
/* top-left-and-bottom-right | top-right-and-bottom-left */
border-radius: 10px 5%;
/* top-left | top-right-and-bottom-left | bottom-right */
border-radius: 2px 4px 2px;
/* top-left | top-right | bottom-right | bottom-left */
border-radius: 1px 0 3px 4px;
/* The syntax of the second radius allows one to four values */
/* (first radius values) / radius */
border-radius: 10px / 20px;
/* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */
border-radius: 10px 5% / 20px 30px;
/* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */
border-radius: 10px 5px 2em / 20px 25px 30%;
/* (first radius values) / top-left | top-right | bottom-right | bottom-left */
border-radius: 10px 5% / 20px 25em 30px 35em;
/* Global values */
border-radius: inherit;
border-radius: initial;
border-radius: unset;
#div1{
width: 150px;
height: 150px;
background: #05ffb0;
border-radius: 20px;
}
Code Example |
---|
Css :: single product page woocommerce css |
Css :: image cover css |
Css :: width in % of a screen css |
Css :: text size to fit button |
Css :: button material ui |
Css :: box shadow 2 sides only |
Css :: :not(:hover) |
Css :: Heart Shape Html And Css |
Css :: aos makes screen unresponsive |
Css :: Html css forbidden cursor |
Css :: make text available only to screen reader |
Css :: css vertical align with flexbox |
Css :: media types in css |
Css :: css stop text wrapping |
Css :: max width for tablet |
Css :: rgba colors |
Css :: css break text no whitespace |
Css :: nth-of-type(2):before |
Css :: back button css |
Css :: css box shadow transform rotate |
Css :: make image scale based on screen size |
Css :: flexbox css properties |
Css :: boostarp grid npm css react |
Css :: css tricks macos spaces in dock |
Css :: what is display inline |
Css :: see css from site |
Css :: font size clamp generator |
Css :: webpack compile sass to css file |
Css :: css scroll y showing scroll bar |
Css :: CodeIgniter + WordPress integration |