DEV Community

Discussion on: CSS Battle #6 - Missing Slice

Collapse
 
kiranojhanp profile image
kiranojhanp • Edited

My simple solution

<div class="wrap"><div></div></div>
<style>
  body {
    background: #E3516E;
    display: grid;
    place-items: center;
    height: 95%;
  }
  .wrap {
    width: 200px;
    height: 200px;
    background: #E3516E;
    clip-path: circle(50%);
  }
  .wrap>div,.wrap>div:before,.wrap>div:after {
    position: absolute;
    height: 100px;
    aspect-ratio: 1;
    content: '';
  }

  .wrap>div {
    background: #51B5A9;
  }

  .wrap>div:before {
    background: #FADE8B;
    margin-left: 100px;
  }

   .wrap>div:after {
    background: #F7F3D7;
    margin-top: 100px;
  }
</style>
Enter fullscreen mode Exit fullscreen mode