좌우에 여백이 생기는데...
그누보드3는 config.php 파일에 보면 상단과 왼쪽 여백은 설정 해주는 부분이 있었는데..
G4는 어디서 조절하나요?
config.php에서 설정 할수가 없네요?
참고로 테이블 길이가 1100입니다.
head.php에서
$table_width = 1100;
?>
으로 수정했습니다.
G4는 어디서 조절하나요?
config.php에서 설정 할수가 없네요?
참고로 테이블 길이가 1100입니다.
head.php에서
$table_width = 1100;
?>
으로 수정했습니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 6개
#mid #ml { width:220px; vertical-align:top; float:left; }
#mid #mtd2 { width:15px; float:left; margin:0 0 1 0; }
#mid #mr { width:683; vertical-align:top; float:left; }
#mid #mtd3 { width:43px; float:left; margin:0 0 1 0; }
위의 내용중에 width:00px 라는 부분의 숫자를 조정해보세요. 0px 나 200px 이렇게 수정하고 보시면
여백이 다른게 적용되는것이 보일것입니다.
아니면 다음처럼해서 border를 설정해보세요(thin 또는 solid 로 해도 됩니다)
#mid #mtd1 { width:43px; float:left; margin:0 0 1 0; border-style:thin;}
#mid #ml { width:220px; vertical-align:top; float:left; border-style:thin;}
#mid #mtd2 { width:15px; float:left; margin:0 0 1 0; border-style:thin;}
#mid #mr { width:683; vertical-align:top; float:left; border-style:thin;}
#mid #mtd3 { width:43px; float:left; margin:0 0 1 0; border-style:thin;}
hepburnstyle (hepburnstyle)//님
ps. 개인정보 정도는 공개하는 아량을 배풀어주십시오.
짱구 아빠님 로컬에서 테스트 중이라... 죄송합니다.
루트님 답변 감사드리구요 가능 하시다면 조금더 설명을...
귀찮게 해드려 죄송합니다.
head.php소스에서 div 에 대한것을 자세히 살펴보시기 바랍니다.
<style type="text/css">
#mid {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
text-align:left;
}
#mid #mtd1 { width:43px; float:left; margin:0 0 1 0; }
#mid #ml { width:220px; vertical-align:top; float:left; }
#mid #mtd2 { width:15px; float:left; margin:0 0 1 0; }
#mid #mr { width:683; vertical-align:top; float:left; }
#mid #mtd3 { width:43px; float:left; margin:0 0 1 0; }
</style>
간단히 레이아웃만 잡는 중인데 좀 봐주세요.
//<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 = 1100;
?>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/logo.gif" width="242" height="123" border="0"></a></td>
<td><img src="<?=$g4[path]?>/img/topmenu.gif" width="608" height="123"></td>
<td><img src="<?=$g4[path]?>/img/top_r.gif" width="250" height="123"></td>
</tr>
</table>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" bgcolor="#F3FFCA"><img src="<?=$g4[path]?>/img/left_menu.gif" width="242" height="483"><?=outlogin("basic"); // 외부 로그인 ?></td>
<td valign="top" width="40"><img src="<?=$g4[path]?>/img/l_space.gif" width="40" height="186"></td>
<td valign="top" width="528"><img src="<?=$g4[path]?>/img/title.gif" width="528" height="186" align="top">
//<tail.php>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
</td>
<td valign="top" width="40"><img src="<?=$g4[path]?>/img/r_space.gif" width="40" height="186"></td>
<td valign="top" bgcolor="#F3FFCA"><img src="<?=$g4[path]?>/img/right_bg.gif" width="250" height="483"></td>
</tr>
</table>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="242" bgcolor="F3FFCA"></td>
<td><img src="<?=$g4[path]?>/img/tsc.gif" width="608" height="79"></td>
<td width="250" bgcolor="F3FFCA"></td>
</tr>
</table>
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$g4[path]?>/img/tail.gif" width="<?=$table_width?>" height="108"></td>
</tr>
</table>
<?
include_once("$g4[path]/tail.sub.php");
?>
감사합니다.
현재는 아래와 같이 되어 있네요...
<body topmargin="0" leftmargin="0" <?=$g4[body_script]?>>
상단,왼쪽 여백캉.....테이블길이는 상관이 없는것 같은데.....