Skip to content

Latest commit

Β 

History

History
57 lines (54 loc) Β· 1.08 KB

File metadata and controls

57 lines (54 loc) Β· 1.08 KB

#10 - Cloaked Spirits

πŸ’₯ Challenge

Cloaked Spirits

πŸ”Ž Link

Try it too and go to battle!

πŸ’‘ Solution

<div class="smaller-rectangle"></div>
<div class="rectangle"></div>
<div class="smaller-rectangle"></div>
<style>
  body {
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: end;
    background: #62306D;
  }
  .rectangle {
    width: 100px;
    height: 200px;
    background: #F7EC7D;
    position: relative;
  }
  .rectangle::after {
    content:"";
    display: block;
    height: 60px;
    width: 60px;
    background: #AA445F;
    border: 20px solid #E38F66;
    border-radius: 50%;
    position: absolute;
    top: -50px;
  }
  .smaller-rectangle {
    width: 100px;
    height: 100px;
    background: #F7EC7D;
    position: relative;
  }
  .smaller-rectangle::after {
    content:"";
    display: block;
    height: 60px;
    width: 60px;
    background: #E38F66;
    border: 20px solid #AA445F;
    border-radius: 50%;
    position: absolute;
    top: -50px;
  }
</style>