float을 clear하는 4가지 방법.
페이지 정보
본문
1. float에 float으로 대응하는 방법
2. float에 overflow 속성으로 대응하는 방법
3. float을 빈 엘리먼트로 clear 하는 방법
.clear {clear:both; height:0; overflow:hidden;}
4. float을 가상 선택자 :after로 clear 하는 방법 - 권장하는 방법
#container:after {content:""; display:block; clear:both;}
* 출처 : http://naradesign.net/wp/2008/05/27/144/
2. float에 overflow 속성으로 대응하는 방법
3. float을 빈 엘리먼트로 clear 하는 방법
.clear {clear:both; height:0; overflow:hidden;}
4. float을 가상 선택자 :after로 clear 하는 방법 - 권장하는 방법
#container:after {content:""; display:block; clear:both;}
* 출처 : http://naradesign.net/wp/2008/05/27/144/
추천0
댓글목록
등록된 댓글이 없습니다.