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.

신고

Comments

관심분야

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

블로그 방문수

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

방문수 그래프

Statistics Graph

티스토리 툴바