float을 clear하는 4가지 방법.
페이지 정보
작성자 관리자 (61.♡.24.46) 작성일 15-12-15 09:22 조회 3,946 댓글 0본문
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
댓글목록 0
등록된 댓글이 없습니다.