Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 아웃풋법칙
- node
- 이펙티브 자바
- 부자의그릇
- try width resources
- ESG
- 히든 스토리
- colllection
- 칭기즈칸의 위대한 장군 수부타이
- 월칙
- java
- 레퍼런스 복사
- 뉴 컨피던스
- 쿠버네티스
- docker
- sentry
- 도파민형 인간
- try-with-resources
- 수부타이
- HTML
- Container
- apache kafka
- 공헌감
- Infresh
- 참조 계수
- 과제의 분리
- kubernetes
- 비메모리 자원
- CSS
- 모두가 기다리는 사람
Archives
- Today
- Total
Hi
(css) clear 본문
float 속성 해제하기
float 속성을 사용하고, 그 다음에 넣는 다른 요소들에도 똑같이 속성이 전달되기 때문에, float 속성이 유용하지 않다는 것을 알려주는 속성
clear : none | left | right | both
<style>
div {
padding:20px;
margin:10px;
}
.box1{
background:#ffd800;
float:left;
}
.box2 {
background: #0094ff;
float:left;
}
.box3 {
background: #00ff21;
}
.box4 {
background:#a874ff;
clear:both;
} </style><div class="box1">박스1</div>
<div class="box2">박스2</div>
<div class="box3">박스3</div>
<div class="box4">박스4</div>
'WEB(웹)' 카테고리의 다른 글
Lorem Ipsum (0) | 2018.05.27 |
---|---|
(css) position (0) | 2018.05.27 |
(css) float (0) | 2018.05.27 |
(css) box-sizing (0) | 2018.05.27 |
(css) padding (0) | 2018.05.27 |