DEV Community

Cover image for CSSBattle | #6 Missing Slice
Nazmuz Shakib Pranto
Nazmuz Shakib Pranto

Posted on

4 3

CSSBattle | #6 Missing Slice

Welcome to CSSBattle Challenges!

In this short article, I go through my solution for CSSBattle - #6 Missing Slice challenge. Please refer to the code snippet below to get a better insight into my thought processes and the implementation detail.


Challenge:

Missing Slice Challenge


Solution:

<div class="container">
  <div class="parent">
    <div class="child top-left"></div>
    <div class="child top-right"></div>
    <div class="child bottom-left"></div>
    <div class="child bottom-right"></div>
  </div>
</div>

<style>
  * {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  .container {
    width: 100%;
    height: 100%;
    background: #E3516E;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .parent {
    width: 200px;
    display: flex;
    flex-wrap: wrap;
  }
  .child {
    width: 100px;
    height: 100px;
  }
  .top-left {
    background: #51B5A9;
    border-top-left-radius: 100px;
  }
  .top-right {
    background: #FADE8B;
    border-top-right-radius: 100px;
  }
  .bottom-left {
    background: #F7F3D7;
    border-bottom-left-radius: 100px;
  }
  .bottom-right {
    background: #E3516E;
  }
</style>
Enter fullscreen mode Exit fullscreen mode

As always, I welcome any feedback or questions regarding the implementation detail of the challenge. Otherwise, I hope this was useful!

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay