티스토리 뷰
05 CSS로 Positioning 하는 법을 알아보자 - clear:both
clear:both는 특정 객체가 깨끗하게 한줄을 전부 차지하도록 하는 속성이다
아래와 같이 flot:left로 되어있던 객체들을
아래와 같이 article3이 한줄을 모두 차지하도록 바꾸어 보자.
#article03을 보자. position속성을 clear:both로 주었다.
section{
width:300px;
}
#article01{
float:left;
width:100px;
height:100px;
background:#3E454C;
}
#article02{
float:left;
width:100px;
height:100px;
background:#2185C5;
}
#article03{
clear:both;
width:100px;
height:100px;
background:#7ECEFD;
}
#article04{
float:left;
width:100px;
height:100px;
background:#FFF6E5;
}
#article05{
float:left;
width:100px;
height:100px;
background:#FF7F66;
}
완료.
'Web개발' 카테고리의 다른 글
| css로 index 화면 만들기 (0) | 2014.08.22 |
|---|---|
| CSS 두 줄로 배치 하는 방법 예제 (0) | 2013.04.02 |
| 04 CSS로 Positioning하는 법을 배워보자 - float:left (0) | 2013.03.11 |
| 01 CSS로 positioning하는 법을 배워보자 - posistion:static, relative (0) | 2013.03.11 |
| 02 Open API 시작하기 - App등록하기 (8) | 2013.02.07 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Sh
- 도커컨테이너
- Linux
- 싱가폴
- 2017 티스토리 결산
- 도커티슈케이스
- 도커티슈박스
- docker container
- 도커각티슈박스
- docker container tissue
- 도커각티슈케이스
- docker container case
- shellscript
- vim
- docker container whale
- 이직
- 개발자
- docker container tissue box
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함