Skip to content

Instantly share code, notes, and snippets.

@Singhak
Created July 19, 2020 08:15
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 Singhak/20040d5e4956b11f1d0f06775e99d64a to your computer and use it in GitHub Desktop.
Save Singhak/20040d5e4956b11f1d0f06775e99d64a to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
.full-circle {
width: 300px;
height: 300px;
border-radius: 150px 150px 150px 150px;
background-color: red;
}
.top-semi-circle {
width: 300px;
height: 150px;
border-radius: 150px 150px 0px 0px;
background-color: blue;
}
.bottom-semi-circle {
width: 300px;
height: 150px;
border-radius: 0 0 150px 150px;
background-color: green;
}
.left-semi-circle {
width: 150px;
height: 300px;
border-radius: 150px 0 0 150px;
background-color: yellow;
}
.right-semi-circle {
width: 150px;
height: 300px;
border-radius: 0 150px 150px 0;
background-color: grey;
}
.top-left-quarter-circle {
width: 300px;
height: 300px;
border-radius: 300px 0 0 0;
background-color: orange;
}
.top-right-quarter-circle {
width: 300px;
height: 300px;
border-radius: 0 300px 0 0;
background-color: purple;
}
.bottom-right-quarter-circle {
width: 300px;
height: 300px;
border-radius: 0 0 300px 0px;
background-color: chartreuse;
}
.bottom-left-quarter-circle {
width: 300px;
height: 300px;
border-radius: 0 0 0 300px;
background-color: lightgreen;
}
</style>
</head>
<body>
<div class="full-circle"></div>
<div class="bottom-semi-circle"></div>
<div class="top-semi-circle"></div>
<div class="top-left-quarter-circle"></div>
<div class="top-right-quarter-circle"></div>
<div class="bottom-left-quarter-circle"></div>
<div class="bottom-right-quarter-circle"></div>
<body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment