티스토리 뷰

CSS

shape-outside

정낭고 2023. 6. 26. 14:32

 < shape-outside > 

❑ shape-outside를 사용할 수 있는 조건

 float

 크기 속성

 shape-outside: 모양(값);

모양: circle, ellipse(타원형), inset(안쪽), polygon(다각형)

shape-outside: circle(원크기 at 중심점 좌표(x축 y축));

shape-outside: circle(50% at 50% 50%);

 

body { font-family: sans-serif; font-size: 18px; }

.megaphone {
  float: left;
  margin-right: 10px;
  shape-outside: circle(50%);
}

.desktop {
  float: left;
  https://assets.codepen.io/485050/acme_logo2_1.png
  shape-outside: inset(40px 20px 40px 0);
}

.logo {
  float: left;
  margin-right: 30px;
/*   shape-outside: url(https://assets.codepen.io/485050/acme_logo2_1.png); */
  shape-outside: polygon(0 0, 200px 0, 255px 106px, 237px 147px, 251px 148px, 245px 170px, 258px 186px, 196px 215px, 0 215px)
}

 

background-clip: padding-box;

  • border-box : 테두리 영역과 그 안쪽 영역을 채웁니다.
  • padding-box : 안쪽 여백 영역과 그 안쪽 영역을 채웁니다.
  • content-box : 내용 영역과 그 안쪽 영역을 채웁니다.

 

 

'CSS' 카테고리의 다른 글

CSS GRID  (0) 2023.07.25
FLEX  (0) 2023.07.03
transform / Loading / aside animation  (0) 2023.06.01
shadow / gradient / transition / animation  (0) 2023.06.01
position / z-index  (0) 2023.06.01
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/12   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함