CSSBattle Apr 13, 2025

zimablue·2025년 4월 13일

CSSBattle

목록 보기
7/31

문제

풀이

<div class="container">
  <div class="wrapper">
    <div class="pill-shape"></div>
    <div class="circle"></div>
  </div>
  <div class="wrapper">
    <div class="pill-shape"></div>
    <div class="circle"></div>
  </div>
</div>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  
  width: 100vw;
  height: 100vh;
  background: #E3CC9E;
}

.wrapper {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  
  width: 160px;
  height: 50px;
}  

.pill-shape {
  width: 100px;
  height: 100%;
  background: #2A2753;
  border-radius: 50px;
}

.circle {
  width: 50px;
  height: 100%;
  background: #2A2753;
  border-radius: 50px;
}

0개의 댓글