CSSBattle Apr 30, 2025

zimablue·2025년 4월 30일

CSSBattle

목록 보기
23/31

문제

풀이

HTML

<div class="container">
  <div class="circle">
    <div class="check"></div>
  </div>
</div>

CSS

* {
  box-sizing: border-box;

  margin: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100vw;
  height: 100vh;
}

.circle {
  position: relative;
  
  width: 240px;
  height: 240px;

  border-radius: 50%;
  
  background: #5A9F48;
}

.check {
  position: absolute;
  top: 145px;
  left: 145px;
  
  width: 70px;
  height: 140px;

  border-width: 0px 40px 40px 0px;
  border-style: solid;
  border-color: #FFFFFF;

  transform: translate(-50%, -50%) rotate(45deg);
}

0개의 댓글