CSSBattle Apr 27, 2025

zimablue·2025년 4월 27일

CSSBattle

목록 보기
20/31

문제

풀이

HTML

<div class="container">
  <div class="circle"></div>
  <div class="square left"></div>
  <div class="square right"></div>
  <div></div>
</div>

CSS

* {
  box-sizing: border-box;

  margin: 0;
}

.container {
  positon: relative;
  
  width: 100vw;
  height: 100vh;
  
  background: #CAEBE4;
}

.circle {
  position: absolute;
  top: 50%;
  left: 50%;
  
  width: 180px;
  height: 180px;

  border-radius: 50%;

  background: #5AA4B7;

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

.square {
  width: 140px;
  height: 150px;
  
  background: #CAEBE4;
}

.left {
  position: absolute;
  left: 0;
  bottom: 0;
}

.right {
  position: absolute;
  right: 0;
  bottom: 0;
}

0개의 댓글