티스토리 뷰
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 {
margin: 1px 2px 3px 4px;
}
To set the property values separately for each face, use the margin property below for each face.
.test {
margin-top: 1px;
margin-right: 2px;
margin-bottom: 3px;
margin-left: 4px;
}
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 |
CSS Height와 Width (0) | 2017.03.28 |
css padding 강좌 (0) | 2017.03.15 |
css margin의 이해 (0) | 2017.03.12 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 서평
- SM5
- 아이나비
- cc2530
- 아이나비 패드
- qxd1000a
- 캠코더
- 독서
- 소니
- 팅크웨어
- 블로그
- AXP35
- c언어
- 소니 핸디캠
- 한빛미디어
- 소니 AXP35
- HP Pavilion x2
- 아이나비 태블릿
- 파빌리온 X2
- X1 DASH
- 블랙박스
- 아이나비 탭 XD11 Pro
- 소니 캠코더
- 독후감
- CSS
- Sony
- 티스토리
- 박근혜
- 아이나비 탭 xd9
- 아이나비 Tab XD9
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
글 보관함