CSS Tutorial for Beginners #21-25

· 7년 전 · 850

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년 전 조회 917
7년 전 조회 1,187
7년 전 조회 1,170
7년 전 조회 1,078
7년 전 조회 1,121
7년 전 조회 1,156
7년 전 조회 1,014
7년 전 조회 1,239
7년 전 조회 1,111
7년 전 조회 808
7년 전 조회 1,096
7년 전 조회 1,111
7년 전 조회 1,012
7년 전 조회 871
7년 전 조회 851
7년 전 조회 1,125
7년 전 조회 1,081
7년 전 조회 1,188
7년 전 조회 927
7년 전 조회 870
7년 전 조회 904
7년 전 조회 1,111
7년 전 조회 1,144
7년 전 조회 908
7년 전 조회 1,022
7년 전 조회 3,950
7년 전 조회 1,235
7년 전 조회 953
7년 전 조회 1,175
7년 전 조회 1,344