CSSBattle May 1, 2025

zimablue·2025년 5월 1일

CSSBattle

목록 보기
24/31

문제

풀이

HTML

<div class="container">
  <div class="top">
    <div class="square"></div>
    <div class="square"></div>
  </div>
  <div class="half-circle"></div>
  <div class="square"></div>
</div>

CSS

* {
  box-sizing: border-box;

  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  
  width: 100vw;
  height: 100vh;
  
  background: #3F4869;

  border: 20px solid transparent;
}

.top {
  display: flex;
  justify-content: space-between;

  width: 100%;
}

.square {
  width: 50px;
  height: 50px;

  background: #F4DA64;
}

.half-circle {
  margin-bottom: 20px;
  
  width: 260px;
  height: 130px;

  background: #3F4869;

  border-style: solid;
  border-width: 0 50px 50px 50px;
  border-color: #F4DA64;
  border-radius: 0 0 130px 130px;
}

0개의 댓글