CSSBattle Apr 18, 2025

zimablue·2025년 4월 18일

CSSBattle

목록 보기
11/31

문제

풀이

<div class="container">
  <div class="wrapper">
    <div class="outLine">
      <div class="inLine"></div>
    </div>
  </div>
</div>
* {
  box-sizing: border-box;
  
  margin: 0;
}

.container {
  position: relative;
  
  width: 100vw;
  height: 100vh;
  
  background: #2D3464;
}

.wrapper {
  position: absolute;
  top: 50%;
  left: 40%;
  
  overflow: hidden;
  
  width: 80px;
  height: 160px;

  transform: translate(-50%, -50%);
}

.outLine {
  position: relative;
  
  width: 160px;
  height: 160px;

  border-radius: 50%;
  
  background: #646DAB;
}

.inLine {
  position: absolute;
  top: 50%;
  left: 50%;
  
  width: 120px;
  height: 120px;

  border: 20px solid #D9D9D9;
  border-radius: 50%;

  background: #2D3464;

  transform: translate(-50%, -50%);
}

0개의 댓글