Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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