Skip to content

Instantly share code, notes, and snippets.

@nm-scripts
Created January 7, 2020 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nm-scripts/381bbcf1de4d4dbedb8a30130bfed005 to your computer and use it in GitHub Desktop.
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
.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