마진값을 주면 마진값만큼 높이값이 늘어나요... 뭐가문제인가요..ㅠ_ㅠ
걸때
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
html
head
style type=text/css
#sub #wrap {width:100%; height:100%; margin:0 auto; text-align:center;}
#sub #container {width:1003px; min-height:100%; height:100%; height: auto !important; *height:100%; margin:0 auto -112px;}
#sub #container:after {content:; display:block; clear:both;}
#sub #leftmenu {float:left; width:283px; text-align:left;}
#sub #content {float:left; width:720px;}
#sub #content #cont_head {text-align:left;}
#sub #content #cont_body {width:716px; text-align:left; position:relative; z-index:100; margin-bottom:0px; *margin-bottom:151px;}
#sub #content #cont_body div.box {height:147px; border-bottom:1px solid #e6e6e6;}
#sub #content #cont_body div.box p {margin-top:100px;}
#sub #line {height:1px; *height:121px; z-index:1; *margin-bottom:-121px;}
#sub #footer {height:111px; width:984px; margin:0 auto; position:relative;}
#sub .foot_button {position:relative; bottom:14px; text-align:right;}
#sub #gotop {right:0; z-index:2;}
/style
/head
body id=sub
div id=wrap
div id=container
div id=leftmenu플래쉬/div
div id=content
div id=cont_head플래쉬/div
div id=cont_body
divimg src=# //div
div class=box
p1/p
/div
div class=box
p1/p
/div
div class=box1/div
/div
/div
/div
div id=line/div
div id=footerimg src=# /div class=foot_buttona href=#img src=# title= alt=# //a/div/div
/div
/html
소스는 위에처럼 되어있는데요..
cont_body 안의 box의 p에 마진값을 줬더니 div.box의 높이 값이 늘어나는 겁니다. ㅇ_ㅇ...
border값을 주면 제대로 되는데.. border을 한부분이라도 빼면... 마진값에의해 높이값이 늘어나네요..ㅠ_ㅠ
뭔가 속성값을 잘못준거같은데..ㄱ- 뭐가 문제인건가요 고수님들 ㅠ_ㅠ
-
가막새
우와+_+ 정말 감사합니다.(_ _ ) overflow가 어떤게 그렇게 되는지 찾아봐야겠네요 오오오..+_+감사합니다. 좋은하루되세욥~
-
강아지
div.box 에 위드값과 overflow:hidden 줘보세요