고요빛물결
CSS

CSS Tutorial for Beginners #21-25

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

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

 

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

소모임

23,243건
+
분류 제목 글쓴이 날짜 조회
출산육아 19-02-14 조회 1,299
CSS 19-02-14 조회 1,031
JS프레임워크 19-02-14 조회 1,169
JS프레임워크
[JS프레임워크]
19-02-14 조회 1,144
서버관리자 19-02-14 조회 2,485
음악/악기
[음악/악기]
19-02-14 조회 1,409
소지구 19-02-14 조회 1,821
호스팅정보 19-02-13 조회 2,010
서버관리자 19-02-13 조회 1,462
음악/악기 19-02-13 조회 1,265
자동차 19-02-13 조회 1,453
모형취미 19-02-13 조회 824
출산육아 19-02-13 조회 964
해외사용자
[해외사용자]
19-02-13 조회 1,474
음악/악기 19-02-13 조회 1,209
Node.js 19-02-13 조회 3,080
Node.js 19-02-13 조회 2,683
고양이 19-02-13 조회 2,155
앱개발 19-02-13 조회 1,495
Node.js
[Node.js]
19-02-13 조회 2,359
앱개발 19-02-13 조회 1,434
앱개발 19-02-13 조회 2,080
소지구 19-02-13 조회 4,598
CSS 19-02-13 조회 1,016
Git 19-02-13 조회 2,162
Git 19-02-13 조회 2,575
JS프레임워크
[JS프레임워크]
19-02-13 조회 1,050
JS프레임워크
[JS프레임워크]
19-02-13 조회 1,195
JS프레임워크 19-02-13 조회 1,107
자동차 19-02-12 조회 1,773