Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 695 Bytes

23-boxception.md

File metadata and controls

44 lines (40 loc) · 695 Bytes

Battle #4 - Display

#23 - Boxception

Link to the problem

result

<div class="box1">
  <div class="box2"></div>
  <div class="box3"></div>
</div>
<style>
  body {
    background: #F3AC3C;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .box1 {
    width: 200px;
    height: 200px;
    background: #1A4341;
    position: relative;
  }
  .box2, .box3 {
    position: absolute;
    bottom: 0;
  }
  .box2 {
    background: #998235;
    width: 100px;
    height: 100px;
    left: 0;
  }
  .box3 {
    background: #F3AC3C;
    width: 50px;
    height: 50px;
    left: 50px;
  }
</style>