테스트 사이트 - 개발 중인 베타 버전입니다

대문에서 aside를 없애고 통으로 사용하기

· 10년 전 · 13210 · 11
대수롭지 않은 내용입니다만... 가끔 문의하시는 분들이 있어서 작성했습니다.


'default.css'파일의 'container' 부분 소스를 복사해서 그 아래에 넣고 수정합니다.

[code]#container {z-index:4;position:relative;float:left;padding:15px 16px 15px 15px;width:939px;min-height:500px;height:auto !important;height:500px;border-right:1px solid #dde4e9;background:#fff;font-size:1em;zoom:1}
#container:after {display:block;visibility:hidden;clear:both;content:""}
#container_title {margin-bottom:20px;font-size:1.2em;font-weight:bold}[/code]
'container'를 전부 'container2'로
'width:728px'를 'width:939px'로 수정

내부 가로폭이 939px이 되므로...
가로 최대폭 939px의 이미지나 내용을 넣을 수 있습니다.


'_head.php' 파일을 복사해서 '_head2.php'로 이름을 바꾸고

include_once(G5_PATH.'/head.php');

include_once(G5_PATH.'/head2.php');
로 수정합니다.


'head.php' 파일을 복사해서 'head2.php'로 이름을 바꾸고
하단의 '외부 로그인'과 '설문조사'를 '//' 주석으로 숨기고
'container2'를 반영해줍니다.

[code]<!-- 콘텐츠 시작 { -->
<div id="wrapper">
<div id="aside">
<?php //echo outlogin('basic'); // 외부 로그인 ?>
<?php //echo poll('basic'); // 설문조사 ?>
</div>
<div id="container2">
<?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?><div id="container2_title"><?php echo $g5['title'] ?></div><?php } ?>[/code]


'index.php' 파일을 열어서
앞에서 만든 '_head2.php' 파일을 연결해 줍니다.

include_once('./_head.php');

include_once('./_head2.php');
로 수정



[ 예시 ]

http://www.internationale.kr/index_example_2.php

위 사이트는 전체 크기를 좀더 넓혔기 때문에... 내용이 약간 다릅니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 11개

로그인 부분은 상단에도 링크가 있습니다.

게시글 목록

번호 제목
2410
2401
2395
2387
2385
2377
2374
2372
2368
2367
2366
2364
2354
2353
2352
2349
2333
2329
2327
2304
2298
2297
2295
2288
2282
2279
2278
2276
2273
2268