CSSBattle Apr 25, 2025

zimablue·2025년 4월 25일

CSSBattle

목록 보기
18/31
post-thumbnail

문제

풀이

HTML

<div class="container yellow">
  <div class="Suppressor big red">
      <div class="Suppressor small yellow">
        <div class="hall red"></div>
      </div>
      <div class="hall yellow"></div>
  </div>
</div>

CSS

* {
  box-sizing: border-box;
  
  margin: 0;
}

.container {
  display: flex;
  justify-content: center;
  
  width: 100vw;
  height: 100vh;
}

.Suppressor {
  border-radius: 0 0 60px 60px;
}

.yellow {
  background: #F5E3B5;
}

.red {
  background: #8D424D;
}

.big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  
  width: 120px;
  height: 210px;
}

.small {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  
  width: 60px;
  height: 120px;

  padding: 15px;
}

.hall {
  width: 30px;
  height: 30px;

  border-radius: 50%;
}

0개의 댓글