좌측 정렬 홈페이지 가운데 정렬. > 그누4 질문답변

그누4 질문답변

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

좌측 정렬 홈페이지 가운데 정렬. 정보

좌측 정렬 홈페이지 가운데 정렬.

본문

현재 좌측정렬 홈페이지 인데 가운데 정렬로 변경하려고 합니다.
시간만 가고 잘 안되네요.

고수님들 알려 주세요!



<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "Home";
include_once("./head.sub.php");
?>
<table width="960">
<!-- 상단부분 -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td background="f_html/imag*/top_bg.gif">

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="top"><a href="index.htm" onfocus='this.blur()'><img src="f_html/image/logo.gif" width="286" height="91" border=0></a></td>
<td valign="top" align="right" height="30">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><a href="/index.htm"><img src="<?=$g4[path]?>/f_html/image/t_menu01.gif" width="46" height="18" border="0"></a></td>
<?
if($member[mb_id]){
?>
<td valign="top"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4[path]?>/f_html/image/t_menu02s.gif" width="58" height="18" border="0"></a></td>
<td valign="top"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4[path]?>/f_html/image/t_menu03s.gif" width="90" height="18" border="0"></a></td>
<?} else{?>
<td valign="top"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4[path]?>/f_html/image/t_menu02.gif" width="58" height="18" border="0"></a></td>
<td valign="top"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4[path]?>/f_html/image/t_menu03.gif" width="90" height="18" border="0"></a></td>
<?}?>
<td valign="top"><a href="<?=$g4['path']?>/nfor.php?gr_id=01&sNum=0"><img src="<?=$g4[path]?>/f_html/image/t_menu04.gif" width="69" height="18" border="0"></a></td>
</tr>
<td valign="top" align="center" height="30">
</table>
</td>
</tr>
<tr>
<td valign="bottom"><script>doc_write(flash_movie("<?=$g4['path']?>/f_html/swf/index.swf?route=0", "ids", 738, 61, "transparent"));</script></td>
</tr>
</table>


</td>
</tr>
<tr>
<td>

<table border="0" cellspacing="0" cellpadding="0" width="100%" background="f_html/image/mai*_bg.gif">
<tr>
<td><script>doc_write(flash_movie("<?=$g4['path']?>/f_html/swf/mainvisual.swf", "ids", 1024, 388, "transparent"));</script></td>
</tr>
</table>

</td>
</tr>
<tr>
<td>

<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="ffffff">

<tr>
<td height="238" colspan="1" valign="top">


<TABLE>
<TR>
<TD>
<img src="f_html/image/int.gif">
</TD>
<TD>




<table width="700">
<tr>
<td colspan="2"><img src="f_html/image/home.gif" width="700" height="64"></td>
</tr>
<tr>
<td colspan="2"><img src="f_html/image/no_on.gif" width="700" height="30" border="0" usemap="#Map2MapMap"></td>
</tr>
<tr>
<td width="350" valign="top">

<TABLE border="0" width="100%">
<?
$que = mysql_query("select * from g4_write_31 where wr_is_comment='0' order by wr_id desc limit 5");
while($data = mysql_fetch_array($que)){
?>
<TR>
<TD>&nbsp;&nbsp;<img src="<?=$g4[path]?>/f_html/image/dot.gif"> <a href="bbs/board.php?bo_table=31&wr_id=<?=$data[wr_id]?>"><?=$data[wr_subject]?></a></TD>
</TR>
<tr>
<td height="1" bgcolor="eeeeee"></td>
</tr>
<?}?>
</TABLE>


</td>
<td width="350" valign="top">

<TABLE border="0" width="100%">
<?
$que = mysql_query("select * from g4_write_41 where wr_is_comment='0' order by wr_id desc limit 5");
while($data = mysql_fetch_array($que)){
?>
<TR>
<TD>&nbsp;&nbsp;<img src="<?=$g4[path]?>/f_html/image/dot.gif"> <a href="bbs/board.php?bo_table=41&wr_id=<?=$data[wr_id]?>"><?=$data[wr_subject]?></a></TD>
</TR>
<tr>
<td height="1" bgcolor="eeeeee"></td>
</tr>
<?}?>
</TABLE>

</td>
</tr>
<tr>
<td colspan="2" height="25"></td>
</tr>
<tr>
<td colspan="2">
<A href="bbs/board.php?bo_table=41"><img src="<?=$g4[path]?>/f_html/image/s_online1.gif" border=0></a>

<A href="bbs/board.php?bo_table=21"><img src="<?=$g4[path]?>/f_html/image/s_online2.gif" border=0></a>

<A href="bbs/board.php?bo_table=31"><img src="<?=$g4[path]?>/f_html/image/s_online3.gif" border=0></a>

<A href="bbs/board.php?bo_table=51"><img src="<?=$g4[path]?>/f_html/image/s_online4.gif" border=0></a>

</td>
</tr>
</table>

<map name="Map2MapMap">
<area shape="rect" coords="640,5,688,23" href="/bbs/board.php?bo_table=41">
<area shape="rect" coords="287,5,336,24" href="/bbs/board.php?bo_table=31">
</map>



</TD>
</TR>
</TABLE>

<Br><Br>


</td>
</tr>
<tr>
<td height="29" colspan="4"></td>
</tr>
<tr>
<td height="33" colspan="4" bgcolor="#bebebe"><img src="f_html/image/copylight.gif" width="850" height="23"></td>
</tr>
</table>

</td>
</tr>
</table>
<?
include_once("./tail.sub.php");
?>
  • 복사

댓글 전체

전체를 div 로 감싸주thㅔ요 이렇게요
<div style="width:원하는넓이px;margin:0 auto;">
내용
</div>

참고로 넓이 안정하시면 일부브라우저에서는 안되는 현상이 ㅎㅎ;
© SIRSOFT
현재 페이지 제일 처음으로