묻고답하기

http://humank.ivyro.net/


위 주소에서 홈페이지를 만들고 있는데 메인페이지에는 이미지 하나만을 올리기 위해 변화를 많이 가했습니다. (이 글 아래에 css파일과 layout.html파일의 내용을 적었고, 첨부파일로도 올렸습니다)


그런데 두 가지 문제가 생겼습니다.


(1) 모니터 해상도를 크게 하면 이미지가 다 보이지만 만약 1024*768 이나 그보다 작게 하면 이미지의 아래 또는 오른쪽이 잘려서 안보이고 세로와 가로의 스크롤바도 안생깁니다. 아래 css파일의 body부분에서 overflow: scroll; 등을 넣어봤지만 소용이 없습니다. 작은 해상도에서 자동으로 스크롤바가 생겨 이미지를 다 볼 수 있게 하려면 어떻게 해야 하는지요?



(2) 그리고 메인메뉴를 이상하게 더 위로 끌어올릴 수가 없습니다. 

더 위로 올리려면 어떻게 해야 하는지요? 





참고로 이미지 하나만을 올리려고 아래와 같이 레이아웃과 css중 왼쪽 로그인창이나 column right 등 이미지 하나만을 올리는데 방해가 되는 내용을 대폭 삭제했습니다. 첨부파일로도 올렸습니다.


css 파일의 내용 :


@charset "utf-8";


#gnb { margin:0; padding:0; }

#lnb { margin:0; padding:0; }

#lnb ul { margin:0; padding:0; }


body { background:url(../images/white/dream.png) no-repeat top center;}

#bodyWrap { position:relative; width:980px; margin:0 auto;  }


#gnb { position:relative; top:0px; left:0; height:38px; overflow:hidden; white-space:nowrap; margin-bottom:10px;}

#gnb li { list-style:none; float:left; padding-left:2px; position:relative; left:-2px; white-space:nowrap;}

#gnb li a { display:block; float:left; padding:13px 15px 0 15px; height:25px; font-weight:bold; color:#ffffff; white-space:nowrap; text-decoration:none; }

#gnb li a:hover,

#gnb li a:focus { color:#ffffff;}

#gnb li.on a { font-weight:bold; color:#ffffff; }


#contentBody { position:relative; width:980px; padding-bottom:30px; }



레이아웃 파일은 다음과 같습니다. 역시 불필요한 부분을 제거한 상태입니다.


<!--// js 파일 import -->

<!--%import("js/xe_official.js")-->


<!--// 레이아웃과 연동될 css 파일 import -->

<!--@if($layout_info->colorset == "white")-->

    <!--%import("css/white.css")-->

<!--@elseif($layout_info->colorset == "black")-->

    <!--%import("css/black.css")-->

<!--@else-->

    <!--%import("css/default.css")-->

<!--@end-->


<!--@if($layout_info->background_image)-->

<style type="text/css">

    body {  background:#FFFFFF url({getUrl()undefinedundefined}{$layout_info->background_image}) repeat-x left top; }

</style>

<!--@end-->


<!--@if(!$layout_info->colorset)-->

    {@$layout_info->colorset = "default"}

<!--@end-->

<div id="bodyWrap">

    <div id="header">

        <h1><!--@if($layout_info->logo_image)--><a href="{$layout_info->index_url}"><img src="{$layout_info->logo_image}" alt="logo" border="0" class="iePngFix" /></a><!--@else-->&nbsp;<!--@end--></h1>




        <!-- GNB -->

        <ul id="gnb">

            <!-- main_menu 1차 시작 -->

            <!--@foreach($main_menu->list as $key => $val)--><!--@if($val['link'])-->

                <!--@if($val['selected'])-->

                    {@ $menu_1st = $val }

                <!--@end-->


                <li <!--@if($val['selected'])-->class="on"<!--@end-->><a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>


            <!--@endif--><!--@endforeach-->

        </ul>



    </div>

    <div id="contentBody">


        

            <!-- 컨텐츠 시작 -->

            {$content}


        

    </div>

    <ul id="footer">


        <!--@foreach($bottom_menu->list as $key => $val)-->

        <li><a href="{$val['href']}" <!--@if($val['open_window']=='Y')-->onclick="window.open(this.href);return false;"<!--@end-->>{$val['link']}</a></li>

        <!--@endforeach-->

    </ul>

</div>



이상입니다.


 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
insideJS 공지사항이 안돼요 도와주세요 file  
건곤일척 XE 초보에게는 이렇게 힘든가요. [1] 2012.10.17 by 온달왕자
쇼우타냥 회원정보 수정시 권한이 없다고 합니다.  
오락실주인 데이터들여오기 [질문] [1] 2012.10.17 by 진정한승리
Bokmani 최신버전으로 설치는 잘 되었는데...  
용초딩 신디케이션 alternative 부분 관련해서  
꿈틀잉 문서에서 첫페이지 숫자 끝페이지 목록 삭제하는방법요 [2] file 2012.10.17 by 온달왕자
문상순727 퍼미션 에러인데 도와주세요  
비스쿠리 xe에서 Q&A게시판 어떻게 구현하나요?  
백용권 임의로 저장된 사진을 첨부시키는 방법이 있나요?  
한번할라냐 게시판DX에서 댓글이 표시되는 위치를 바꾸고 싶은데요 ㅜㅜ file  
a-ram 관리자 아이디/비밀번호 분실 [2] 2012.10.17 by 푸시아
손주사랑 다음이고 xe고 모두다 아이프레이미ㅣ이 안되네요... [2] 2012.10.17 by 푸시아
까만사탕 조회수 추천수 비추천수 날짜 최근 수정일 안나오게 하는 방법? file  
임완빈 페이지를 탭으로 나타내는 방법에 대해서 [1] 2012.10.17 by 아직없는닉
노멀라이저 송동우님 저좀 도와주세요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ  
infiorb 쉬운설치 - FTP 오류 file  
Yopi 갑자기 로그인이 안 되는데 검색해봐도 제 경우는 이유를 모르겠어요. [1] file 2012.10.16 by ShopFree
자근도깨비 업데이트후 제어판오류  
꿈꾸는@달 ip 보이기 문제