메인페이지 가운데 정렬 방법좀 정보
메인페이지 가운데 정렬 방법좀본문
안녕하세요
사이트 메인페이지의 화면을 가운데 정렬로 하고자 하거든요
이곳 그누사이트나 네이버처럼요
제가 영카트를 적용했는데
창을 크게 하면 가운데 정렬로 되는데
창을 줄이면 좌측 메뉴가 좌측으로 딱 붙어 보여지거든요
(좌우여백이 없이)
창을 줄여도 가운데 정렬로 나타나게 하려면 어떻게 해야 하는지요
고수님의 도움 부탁드려요..
아래는
head.php의 상단 내용입니다
------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 800;
//print_r2($g4);
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
<style>
.amount { color:#2266BB; font-weight:bold; font-family:Verdana; }
.c1 { background-color:#94D7E7; }
.c2 { background-color:#E7F3F7; }
</style>
<!-- 전체 -->
<table align=center width='1000' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width='900'>
<!-- 상단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=2 height=4 bgcolor=#DCDCDB></td></tr>
<tr>
<td rowspan=2 align=left width=200 height=60><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/img/logo.gif' border=0></a></td>
<td align=right class=small>
<? if ($is_member) { ?>
<a href='<?=$g4[bbs_path]?>/logout.php'>로그아웃</a> |
<a href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php'>정보수정</a> |
<? } else { ?>
<a href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>'>로그인</a> |
<a href='<?=$g4[bbs_path]?>/register.php'>회원가입</a> |
<? } ?>
<a hre='<?=$g4[shop_path]?>/cart.php'>회원저장<span class=small>(<?=get_cart_count(get_session('ss_on_uid'));?>)</span></a> |
<a hre='<?=$g4[shop_path]?>/orderinquiry.php'>회원검색</a> |
<a hre='<?=$g4[shop_path]?>/onlinecalc.php'>의뢰인대행</a> |
<a hre='<?=$g4[shop_path]?>/faq.php'>FAQ</a> |
<a href='<?=$g4[shop_path]?>/mypage.php'>마이페이지</a>
</td>
</tr>
<tr>
사이트 메인페이지의 화면을 가운데 정렬로 하고자 하거든요
이곳 그누사이트나 네이버처럼요
제가 영카트를 적용했는데
창을 크게 하면 가운데 정렬로 되는데
창을 줄이면 좌측 메뉴가 좌측으로 딱 붙어 보여지거든요
(좌우여백이 없이)
창을 줄여도 가운데 정렬로 나타나게 하려면 어떻게 해야 하는지요
고수님의 도움 부탁드려요..
아래는
head.php의 상단 내용입니다
------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 800;
//print_r2($g4);
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
<style>
.amount { color:#2266BB; font-weight:bold; font-family:Verdana; }
.c1 { background-color:#94D7E7; }
.c2 { background-color:#E7F3F7; }
</style>
<!-- 전체 -->
<table align=center width='1000' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width='900'>
<!-- 상단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=2 height=4 bgcolor=#DCDCDB></td></tr>
<tr>
<td rowspan=2 align=left width=200 height=60><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/img/logo.gif' border=0></a></td>
<td align=right class=small>
<? if ($is_member) { ?>
<a href='<?=$g4[bbs_path]?>/logout.php'>로그아웃</a> |
<a href='<?=$g4[bbs_path]?>/member_confirm.php?url=register_form.php'>정보수정</a> |
<? } else { ?>
<a href='<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>'>로그인</a> |
<a href='<?=$g4[bbs_path]?>/register.php'>회원가입</a> |
<? } ?>
<a hre='<?=$g4[shop_path]?>/cart.php'>회원저장<span class=small>(<?=get_cart_count(get_session('ss_on_uid'));?>)</span></a> |
<a hre='<?=$g4[shop_path]?>/orderinquiry.php'>회원검색</a> |
<a hre='<?=$g4[shop_path]?>/onlinecalc.php'>의뢰인대행</a> |
<a hre='<?=$g4[shop_path]?>/faq.php'>FAQ</a> |
<a href='<?=$g4[shop_path]?>/mypage.php'>마이페이지</a>
</td>
</tr>
<tr>
댓글 전체
<!-- 전체 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width='<?=$table_width?>' align=center>
<!-- 상단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
이렇게 수정해서 해 보세요.
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width='<?=$table_width?>' align=center>
<!-- 상단 -->
<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
이렇게 수정해서 해 보세요.