CSSBattle Apr 15, 2025

zimablue·2025년 4월 15일

CSSBattle

목록 보기
8/31

문제

풀이

<div class="container">
  <div class="wrapper">
    <div class="pink-inner">
      <div class="pink-ball"></div>
      <div class="purple-inner"></div>
    </div>
  </div>
</div>
* {
  box-sizing: border-box;
  
  margin: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  
  width: 100vw;
  height: 100vh;
  
  background: #4C3AB3;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: end;
  
  width: 200px;
  height: 240px;

  border: 30px solid #D96E9F;
  border-radius: 100px 100px 0 0;

  background: #4C3AB3;
}

.pink-inner {
  position: relative;
  
  width: 120px;
  height: 170px;
  
  border: 30px solid #D96E9F;
  border-radius: 100px 100px 0 0;
}

.pink-ball {
  position: absolute;
  top: 10px;
  left: 50%;
  
  width: 40px;
  height: 40px;

  border-radius: 50%;

  background: #D96E9F;

  transform: translateX(-50%);
}

.purple-inner {
  position: absolute;
  bottom: -60px;
  
  width: 60px;
  height: 64px;

  background: #4C3AB3;
}

0개의 댓글