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 {

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




분류 전체 (1578)N
티스토리 공부 (67)N
잉고래 (481)
컴퓨터 (162)
문화연예 (173)
먹고 놀기 (76)
정보 (608)

블로그 방문수

전체 : 6,988,187
오늘 : 1,287
어제 : 2,378

방문수 그래프

Statistics Graph

티스토리 툴바