CSS Tutorial for Beginners #21-25

· 6년 전 · 722

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 관련 공부 및 자료 공유 소모임 게시판 입니다.

+
제목 글쓴이 날짜 조회
6년 전 조회 765
6년 전 조회 1,047
6년 전 조회 993
6년 전 조회 938
6년 전 조회 980
6년 전 조회 1,010
6년 전 조회 889
6년 전 조회 1,098
6년 전 조회 987
6년 전 조회 669
6년 전 조회 950
6년 전 조회 980
6년 전 조회 876
6년 전 조회 747
6년 전 조회 723
6년 전 조회 998
6년 전 조회 953
6년 전 조회 1,071
6년 전 조회 800
6년 전 조회 747
6년 전 조회 776
6년 전 조회 989
6년 전 조회 1,026
6년 전 조회 774
6년 전 조회 896
6년 전 조회 3,820
6년 전 조회 1,120
6년 전 조회 823
6년 전 조회 1,056
6년 전 조회 1,213
🐛 버그신고