Skip to content

Instantly share code, notes, and snippets.

@SarveshMD
Created August 8, 2021 14:42
Show Gist options
  • Save SarveshMD/fda1db807949de94197200f055a6be12 to your computer and use it in GitHub Desktop.
Save SarveshMD/fda1db807949de94197200f055a6be12 to your computer and use it in GitHub Desktop.
CSS Battle #39 - Sunset
<div class="circle outer">
<div class="circle inner"></div></div>
<div class="shadow"></div>
<style>
body,.outer {
background: #1A4341;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.circle {
position: absolute;
border-radius: 50%;
}
.outer {
height: 250px;
width: 250px;
}
.inner {
height: 200px;
width: 200px;
background: #998235;
}
.shadow {
position: absolute;
height: 20px;
width: 250px;
background: #F3AC3C;
box-shadow: 0 20px 0 0 #1A4341,
0 -20px 0 0 #1A4341,
0 40px 0 0 #F3AC3C,
0 -40px 0 0 #F3AC3C,
0 60px 0 0 #1A4341,
0 -60px 0 0 #1A4341;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment