티스토리 뷰

티스토리 공부

margin css order

잉고래 2017.03.29 21:02

css tutorial : order of margin face

The order of the margin property of css is top, right, bottom, left. Same as clockwise. In the following css example, the margin for each direction would be 1px up, 2px right, 3px down, 4px left.

.test {
    margin1px 2px 3px 4px;
}

To set the property values separately for each face, use the margin property below for each face.

.test {
    margin-top1px;
    margin-right2px;
    margin-bottom3px;
    margin-left4px;
}

The order of css for each side applies equally to padding and border as well as margin.

신고

'티스토리 공부' 카테고리의 다른 글

css outline 속성 강좌  (0) 2017.04.04
box model의 이해  (0) 2017.04.03
margin css order  (0) 2017.03.29
CSS Height와 Width  (0) 2017.03.28
css padding 강좌  (0) 2017.03.15
css margin의 이해  (0) 2017.03.12
댓글
댓글쓰기 폼
Total
7,105,912
Today
184
Yesterday
1,646
«   2017/11   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
글 보관함