본문으로 건너뛰기
김신건의 로그

[CSSBattle] Target #6 - Missing Slice

이것도 특이한 아이디어는 없다.

· 📖 약 1분 · 64자/단어 #CSSBattle #CSS

CSSBattle

CSS Battle 사이트는?

Target #6 - Missing Slice

문제 풀러가기

문제

이것도 특이한 아이디어는 없다.

단순히 구획을 4개로 나누었고, 각각 border-radius를 따로 적용했다.

<div>
  <i></i>
  <i></i>
  <i></i>
</div>

<style>  
  body {
    background: #E3516E;
  	margin: 0;
  }
  div {
    display: flex;
    flex-wrap: wrap;
    width: 200px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
   	top: 50%;
  }
  i {
    flex-basis: 50%;
    height: 100px;
    background: #111;
  }
  
  i:nth-child(1) {
    background: #51B5A9;
    border-radius: 100% 0 0;
  }
  
  i:nth-child(2) {
    background: #FADE8B;
    border-radius: 0 100% 0 0;
  }
  
  i:nth-child(3) {
    background: #F7F3D7;
    border-radius: 0  0 0 100%;
  }
</style>

💬 댓글

사이트 검색 / 명령어

검색

스크롤 = 확대/축소 · 드래그 = 이동 · 0 = 원래 크기 · ESC = 닫기