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.


댓글이 0개 달렸습니다.


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

블로그 방문수

  • 전체 : 6,856,554
    오늘 : 1,413
    어제 : 1,494
Statistics Graph

티스토리 툴바