CSS Tutorial for Beginners #21-25

· 7년 전 · 905

First & Last Child Selectors

 

pseudo 선택자 first-child, last-child로

article p:first-child

article p:last-child

 

 

First & Last of Type Selectors

 

pseudo 선택자 : first-of-type, last-of-type

 

 

nth child Selectors

 

nth-child(1), nth-child(7) 첫번째, 7번째.

nth-child(even)

nth-child(odd)   

nth-child(2n + 1)

nth-child(3n + 1)

 

 

nth of Type Selectors

 

nth-of-type(1)

nth-of-type(odd)

nth-of-type(2n + 1)

 

 

Combining selectors

<article class="featured-content">

<div class="feature-content">

article.feature-content

div.feature-content

 

|
댓글을 작성하시려면 로그인이 필요합니다.

CSS

CSS 관련 공부 및 자료 공유 소모임 게시판 입니다.

+
제목 글쓴이 날짜 조회
7년 전 조회 1,008
7년 전 조회 1,269
7년 전 조회 1,257
7년 전 조회 1,144
7년 전 조회 1,188
7년 전 조회 1,219
7년 전 조회 1,093
7년 전 조회 1,313
7년 전 조회 1,184
7년 전 조회 883
7년 전 조회 1,161
7년 전 조회 1,179
7년 전 조회 1,083
7년 전 조회 931
7년 전 조회 906
7년 전 조회 1,187
7년 전 조회 1,134
7년 전 조회 1,254
7년 전 조회 976
7년 전 조회 916
7년 전 조회 956
7년 전 조회 1,163
7년 전 조회 1,192
7년 전 조회 959
7년 전 조회 1,079
7년 전 조회 4,010
7년 전 조회 1,282
7년 전 조회 1,006
7년 전 조회 1,221
7년 전 조회 1,394