Created
January 7, 2020 19:24
-
-
Save nm-scripts/381bbcf1de4d4dbedb8a30130bfed005 to your computer and use it in GitHub Desktop.
CSS rounded corners. We will see how we can get rounded corner effect using border radius without going through the laborious process of creating images and fitting them in every item corner to create the desired effect https://www.agernic.com/css-tutorial/css-rounded-corners.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.corner-radius1 | |
{ | |
border-radius:12px; | |
padding:10px; | |
width:250px; | |
height:160px; | |
background-color: #FF9; | |
float: left; | |
} | |
.corner-radius2 | |
{ | |
border-radius:12px; | |
padding:10px; | |
width:250px; | |
height:160px; | |
border: thin solid #0C0; | |
float: left; | |
margin-left: 18px; | |
} | |
.corner-radius3 | |
{ | |
border-radius:12px; | |
padding:10px; | |
width:250px; | |
height:160px; | |
background-image: url(https://www.agernic.com/uploads/paper.gif); | |
float: left; | |
margin-left: 18px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment