Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 850 Bytes

04_Ups_n_Downs.md

File metadata and controls

50 lines (42 loc) · 850 Bytes

#4 - Ups n Downs

💥 Challenge

Ups n Downs

🔎 Link

Try it too and go to battle!

💡 Solution

<div class="box">
  <div class="portion"></div>
  <div class="portion""></div>
  <div class="portion"></div>
  <div class="portion"></div>
  <div class="portion""></div>
  <div class="portion"></div>
</div>

<style>
  body {
    margin: 0px;
    background: #62306D;
    display: grid;
    place-content: center
  }
  
  .box {
    display: flex;
    width: 300px;
    flex-wrap: wrap;
  }

  .portion{
    width: 100px;
    height: 100px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    background-color: #F7EC7D;
  }

  .portion:nth-child(n+4){
    transform: rotate(180deg)
  }

  .portion:nth-child(odd){
    background: #62306D;
  }
</style>