고요빛물결

CSS Tutorial for Beginners #21-25

· 2019-02-13 (수) 02:06:19 · 1000

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

89건

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

+
제목 글쓴이 날짜 조회
19-02-19 조회 1,359
19-02-19 조회 1,240
19-02-18 조회 1,279
19-02-18 조회 1,317
19-02-17 조회 1,179
19-02-17 조회 1,415
19-02-17 조회 1,279
19-02-16 조회 969
19-02-16 조회 1,255
19-02-16 조회 1,271
19-02-15 조회 1,172
19-02-14 조회 1,018
19-02-13 조회 1,001
19-02-12 조회 1,282
19-02-12 조회 1,242
19-02-11 조회 1,348
19-02-11 조회 1,054
19-02-11 조회 1,010
19-02-10 조회 1,097
19-02-10 조회 1,254
19-02-10 조회 1,321
19-02-09 조회 1,044
19-02-09 조회 1,167
19-02-08 조회 4,094
19-02-08 조회 1,369
19-02-08 조회 1,101
19-02-08 조회 1,311
19-02-08 조회 1,473
19-02-08 조회 1,321