고요빛물결

CSS Positioning Tutorials #1-6

· 2019-02-18 (월) 00:04:03 · 1326

1. Introduction

 

배울것

box model, nomal document flow, floats, postion property, stacking order and Z-index

overflowing Content, text columns

 

 

2. Box Model Review

 

box, inline형 elements

width, height, padding, border, margin

 

 

3. nomal document Flow

 

순서대로 표시함

 

 

4. Floating elements

 

img{

  float: left:

  margin: 10px}

}

 

float left, right을 하면 normal document flow에서 벗어남.

 

 

5. Clearing Floats

 

clear: left or right or both;

 

margin을 주어도 float도 된 곳으로 올라감. 

 

empty div를 넣은 방법도 있겠지만. HTML에 쓸데 없는 코드가 들어감.

 

float되는 class에 after를 상요함.

 

.service:after {

  content: "";

  display: block;

  clear: both;

}

 

 

6. Floating columns

 

 

 

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

CSS

89건

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

+
제목 글쓴이 날짜 조회
19-02-19 조회 1,366
19-02-19 조회 1,246
19-02-18 조회 1,287
19-02-18 조회 1,327
19-02-17 조회 1,186
19-02-17 조회 1,422
19-02-17 조회 1,286
19-02-16 조회 975
19-02-16 조회 1,266
19-02-16 조회 1,279
19-02-15 조회 1,180
19-02-14 조회 1,025
19-02-13 조회 1,007
19-02-12 조회 1,289
19-02-12 조회 1,250
19-02-11 조회 1,354
19-02-11 조회 1,061
19-02-11 조회 1,020
19-02-10 조회 1,102
19-02-10 조회 1,261
19-02-10 조회 1,329
19-02-09 조회 1,051
19-02-09 조회 1,173
19-02-08 조회 4,101
19-02-08 조회 1,376
19-02-08 조회 1,107
19-02-08 조회 1,317
19-02-08 조회 1,479
19-02-08 조회 1,329