해제후 padding-top 쪽에 패딩이 더들어가요..?
연하늘
2023.04.01
style type=text/css
#left{border:1px solid #f00; width:200px; height:200px; float:left;}
#right{border:1px solid #00f; width:200px; height:10px;}
#foot{clear:both;}
#foot h2{padding:10px 0; border:1px solid #000;}
/style
/head
body
div id=left
/div
div id=right
/div
div id=foot
h2패딩 위쪽이 더생겨요/h2
/div
/body
h2패딩이 위아래 10px인데 위쪽에 더들어가는 현상이....
아시는분 계신가요??ㅠ
-
흰여울
haslayout ㅎㅎ 답글에서도 많이 배워가요~ 고마워용~
-
2gether
foot쪽에 width값을 주시면 바로 떨어지실꺼에요~
-
낶아
#right에도 float:left을 시키거나 h2에 width:100% 값을 추가하시면 돼요.