CSS Selectors

이종현·2020년 12월 2일
0

CSS

목록 보기
9/9

요소, 클래스, ID 선택자(Type, Class, ID Selector)

요소 선택자
h1 {
}

클래스 선택자
.class {
}

Id 선택자
#id {
}

Child, Descendant & Sibling Combinators

Child
parenjt > child

Descendant
parent descendants

Sibling Combinators
check ~ check

check + check

Structural Pseudo-classes

element:first-child
element:last-child
element:nth-child(n)

User Action Pseudo-classes

element:hover
element:focus
element:active
profile
꿈 을 코딩하자

0개의 댓글