s

div 100% 로 했을시 문제가 생기네요..

· 2012-10-08 (월) 00:59:48 · 896 · 2
div 100% 로 했을시 전체창에서 창을 반으로 줄이면 가로 스크롤바가 나오는데 화면을 반으로 줄인상태에서 스크롤바를 오른쪽으로 옮기면 흰여백이 생기네요 ㅠㅠ
수정할 방법이 있을가요?

<style type="text/css">
*{
margin:0;
padding:0;
}
html,body{
height:100%;
}
body{
font-family:tahoma,arial,sans-serit,verdana;
font-size:0.74em;
color:#000;
background:#FFF;
}
#top{
position:relative; /* 3 */
height:100px;
color:#FFF;
background:#000;
z-index:1; /* 3 */
}
#middle{
min-height:100%;
margin:-100px 0 -50px;
background:#DDD;
}
*html #middle{
height:100%;
}
#middle #wrapper{ /* 5 */
width:100%;
display:table;
}
#middle #wrapper #left{
position:relative; /* 3 */
float:left; /* 1 */
width:200px; /* 1 */
margin-right:-200px; /* 1 */
padding:100px 0 50px;
background:#999;
}
#middle #wrapper #content{
float:left; /* 4 */
width:100%; /* 4 */
line-height:1.3em;
padding:100px 0 50px;
background:#BBB;
}
#middle #wrapper #content div.inside{ /* 2 */
padding-left:210px;
}
#bottom{
position:relative; /* 3 */
height:50px;
color:#FFF;
background:#000;
z-index:1; /* 3 */
}
</style>
</head>
<body>
<div id="top">#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top#top</div>
<div id="middle">
<div id="wrapper">
<div id="left">#left</div>
<div id="content">
<div class="inside">#content</div>
</div>
</div>
</div>
<div id="bottom">#footer</div>
</body>
</html>

첨부파일

sss.html (1.5 KB) 3회 2012-10-08 00:59
|

댓글 2개

상단에 #top 글자가 길어서 그런것이니
word-break:break-all; 을 사용하시거나

상단글이 짤려야 되는게 아니면 전체를 div 로 쌓으시고 width 값을 지정해 주셔야 합니다 body 에 주셔도 되고요
2013-04-24 (수) 13:42:19
질문을 올려놓고 이제 봤네요 -_-
감사합니다~
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12-10-08 조회 681
12-10-08 조회 1,690
12-10-08 조회 1,925
12-10-08 조회 2,162
12-10-08 조회 887
12-10-08 조회 1,090
12-10-08 조회 1,083
12-10-08 조회 888
12-10-08 조회 1,003
12-10-08 조회 1,556
12-10-08 조회 1,011
12-10-08 조회 640
12-10-08 조회 1,945
12-10-08 조회 897
12-10-07 조회 863
12-10-07 조회 966
12-10-07 조회 1,656
12-10-07 조회 1,612
12-10-07 조회 1,009
12-10-07 조회 1,714