CSS Tutorial for Beginners #21-25

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

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,325
19-02-19 조회 1,212
19-02-18 조회 1,251
19-02-18 조회 1,284
19-02-17 조회 1,155
19-02-17 조회 1,380
19-02-17 조회 1,252
19-02-16 조회 937
19-02-16 조회 1,230
19-02-16 조회 1,247
19-02-15 조회 1,142
19-02-14 조회 990
19-02-13 조회 972
19-02-12 조회 1,252
19-02-12 조회 1,198
19-02-11 조회 1,309
19-02-11 조회 1,027
19-02-11 조회 982
19-02-10 조회 1,020
19-02-10 조회 1,229
19-02-10 조회 1,247
19-02-09 조회 1,018
19-02-09 조회 1,138
19-02-08 조회 4,068
19-02-08 조회 1,346
19-02-08 조회 1,070
19-02-08 조회 1,285
19-02-08 조회 1,441
19-02-08 조회 1,293