티스토리 뷰

CSS

container query / Logical Props

정낭고 2023. 10. 18. 09:39

CSS container query

참고사이트: https://codepen.io/tutsplus/pen/LYLyYdQ

🙾  

 


CSS Logical Props

direction ltr (기본값)

horizontal-tb (기본값)

inline (= 글씨가 채워지는 방향)

 

ltr = left to right

tb = top to bottom

writing-mode

vertical-lr

vertical-rl

 

▏ Physical(물리적) VS Logical(논리적)

🙾  phycial property(물리적 속성들): margin-left, padding-left, border-top

direction: rtl;

margin-left: 4rem;

 

🙾  논리적 속성들: writing-mode direction

direction: rtl;

margin-inline-end: 4em;

 

CSS 우선 순위

🙾 레이어의 순서를 결정

- @layer reset, layout, section;

 

🙾 @import 그룹화

- @import url(reset.css) layer(reset);

- @import url(layout.css) layer(layout);

 

🙾 @layer 스타일 추가

- @layer reset { }

- @layer reset {  }

- @layer section{  }

 


CSS MULTI- COLUMNS

.container {
	width: 75%;
	margin:0 auto;
/* 	column-count: 3;
	column-width: 10rem; */
	columns : 10rem 3;
}

@media and (min-height:400px){
	.container{
		columns:3;
	}
}

'CSS' 카테고리의 다른 글

CSS GRID  (0) 2023.07.25
FLEX  (0) 2023.07.03
shape-outside  (0) 2023.06.26
transform / Loading / aside animation  (0) 2023.06.01
shadow / gradient / transition / animation  (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
글 보관함