게시판 레이아웃 정렬 문제입니다. > 그누4 질문답변

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 질문답변

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

게시판 레이아웃 정렬 문제입니다. 정보

게시판 레이아웃 정렬 문제입니다.

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : www.sejinrnt.com


회사홈페이지 리뉴얼 중 안되는 부분이 있어 질문 드리게 되었습니다.

어디가 문제인지 정확히 판별이 불가능하여 관련 코드는 올리지 못했습니다.

기존에 홈페이지는 전부 왼쪽정렬이 되어있어서 이것을 센터로 옴길려고 합니다

main과 sub페이지  작업도중 img로 되어있는 페이지에서는 table에만 center값을 줘도

가운데 정렬이 되지만.. 게시판과 연동이 되어있는 페이지에서는 table에 center 값을 줘도

도통 움직이질 않네요..  list.skin.php 파일등이 많은데  제가 직접제작한게 아니라

업체에 의뢰후 ftp주소만 가지고 제가 리뉴얼 하려니 무슨말이지 잘 모르겠습니다..

지금까지 제가 수정한게 main센터정렬..  서브메뉴중 company 에 보시면

더 쉽게 알아보실꺼 같습니다...

도움을 부탁드립니다...

------------수정본--------------

그냥 말로는 제가 좀 이해하기가 힘들어서 해당부분 html과 head, tail 부분 코드 첩부하겠습니다..

기존 html에서는 게시판 연동부분이 없는 거 같았습니다...
그냥 네모난 레이아웃만 그려놓고 게시글을 그 자리에 불러들이는 것같습니다.
다른 페이지는 이미지만 있는 페이지라 위에보시면 table에 center만 주어도 전체적으로
화면 가운데로 이동하게 되는데  게시판과 연동된 페이지만 table에 center를 주어도 요지부동이네요..
어디를 수정해야 될지 정확하게 잘 모르겠습니다..

<서브페이지>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>Untitled Document</title>
<script src="../flash.js" language="javascript"></script>
<script src="../flash_link.js" language="javascript"></script>
<link href="../inc/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(../img/main/main_bg.jpg);
background-repeat: repeat-x;
}
#Layer1 {
position:absolute;
left:50%;
margin-left:-487.5px;
top:0px;
width:975px;
height:102px;
z-index:1;
}
-->
</style></head>

<body style="overflow-x:hidden;overflow-y:auto">
<div id="Layer1">
  <table width="976" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="38">&nbsp;</td>
      <td><script>flash_contents('../img/main/sj-menu.swf?main=1&sub=4','938','100');</script></td>
    </tr>
  </table>
</div>
<table align="center" width="976" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="38">&nbsp;</td>
    <td width="938"><table width="938" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="225"><script>flash_contents('../img/sub1/sub1-img.swf','938','225');</script></td>
      </tr>
      <tr>
        <td><table width="938" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="155" valign="top"><table width="154" border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td colspan="2"><img src="../img/sub1/sub1-0003.jpg" width="154" height="12"></td>
                </tr>
              <tr>
                <td width="1" bgcolor="9ac9d3"></td>
                <td width="154" background="../img/sub1/sub1-0005.jpg" style="BACKGROUND-REPEAT: no-repeat">
                  <table width="139" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><script>flash_contents('../img/sub1/sub1-menu.swf?main=4','139','227');</script></td>
                    </tr>
                    <tr>
                      <td height="7"></td>
                    </tr>
                    <tr>
                      <td valign="top"><? include "../inc/left-1.html"; ?></td>
                    </tr>
                  </table>
</td>
              </tr>
              <tr>
                <td colspan="2"><img src="../img/sub1/sub1-0004.jpg" width="154" height="10"></td>
                </tr>

            </table></td>
            <td width="783" valign="top"><table width="782" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="3"><img src="../img/sub1/sub1-0008.jpg" width="782" height="15"></td>
                </tr>
              <tr>
                <td width="1" bgcolor="#9ac9d3"></td>
                <td width="780" valign="top"><table width="744" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><table width="744" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="42" height="42"><img src="../img/sub1/title1-4.jpg" width="535" height="42"></td>
                      </tr>
                      <tr>
                        <td height="1" bgcolor="#dadada"></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="400" valign="top"><div align="center"> <br>
                      <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="200"><table width="170" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
                              <tr>
                                <td height="170" bgcolor="#FFFFFF"><div align="center"><img src="../img/sub3/sub3-0004.jpg" width="132" height="132"></div></td>
                              </tr>
                            </table>
                              <table width="170" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="31"><div align="center" class="boar_text1">빗자루 공중부양 </div></td>
                                </tr>
                                <tr>
                                  <td height="25">&nbsp;</td>
                                </tr>
                            </table></td>
                          <td width="200"><table width="170" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
                              <tr>
                                <td height="170" bgcolor="#FFFFFF"><div align="center"><img src="../img/sub3/sub3-0004.jpg" width="132" height="132"></div></td>
                              </tr>
                            </table>
                              <table width="170" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="31"><div align="center" class="boar_text1">카테고리 가능한 </div></td>
                                </tr>
                                <tr>
                                  <td height="25">&nbsp;</td>
                                </tr>
                            </table></td>
                          <td width="200"><table width="170" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
                              <tr>
                                <td height="170" bgcolor="#FFFFFF"><div align="center"><img src="../img/sub3/sub3-0004.jpg" width="132" height="132"></div></td>
                              </tr>
                            </table>
                              <table width="170" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="31"><div align="center" class="boar_text1">겔러리로 해주세요 </div></td>
                                </tr>
                                <tr>
                                  <td height="25">&nbsp;</td>
                                </tr>
                            </table></td>
                        </tr>
                      </table>
                    </div></td>
                  </tr>
                </table></td>
                <td width="1" bgcolor="#9ac9d3"></td>
              </tr>
              <tr>
                <td colspan="3"><img src="../img/sub1/sub1-0009.jpg" width="782" height="16"></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="938" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="155">&nbsp;</td>
            <td height="56"><? include "../inc/bottom.html"; ?></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>




<head부분>


<?
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 = 1004;
?>

<!-- 상단 배경 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td background="<?=$g4['path']?>/img/top_img_bg.gif">
        <table width="100%" height="52" cellspacing="0" cellpadding="0">
        <tr>
            <td><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
        </tr>
        </table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->

<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="57"></td>
    <!-- 로고 -->
    <td width="220"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="57" border="0"></a></td>
    <td>
        <table width=100% border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td>&nbsp;</td>
        </tr>
        </table>
    </td>
    <td width="390" align="right">
        <table border="0" cellspacing="0" cellpadding="0">
        <tr>
            <!-- 처음으로 버튼 -->
            <td width="78"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>

            <? if (!$member['mb_id']) { ?>
            <!-- 로그인 이전 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
            <? } else { ?>
            <!-- 로그인 이후 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
            <? } ?>
           
            <!-- 최근게시물 버튼 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>

        </tr>
        </table></td>
    <td width="35"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->

<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="11"></td>
    <td width="220"></td>
    <td width=""></td>
    <td width="234"><img src="<?=$g4['path']?>/img/search_top.gif" width="234" height="11"></td>
    <td width="35"></td>
</tr>
<tr>
    <td height="33"><img src="<?=$g4['path']?>/img/bar_01.gif" width="43" height="33"></td>
    <td><img src="<?=$g4['path']?>/img/bar_02.gif" width="220" height="33"></td>
    <td background="<?=$g4['path']?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25>&nbsp;</td><td><?//=popular();?></td></tr></table></td>
    <td>
        <table width="100%" height="33" cellspacing="0" cellpadding="0">
        <form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
        <!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
        <input type="hidden" name="sfl" value="wr_subject||wr_content">
        <input type="hidden" name="sop" value="and">
        <tr>
            <td width="25" height="25"><img src="<?=$g4['path']?>/img/search_01.gif" width="25" height="25"></td>
            <td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
            <td width="12"><img src="<?=$g4['path']?>/img/search_02.gif" width="12" height="25"></td>
            <td width="48"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" width="48" height="25" border="0"></td>
            <td width="13"><img src="<?=$g4['path']?>/img/search_03.gif" width="13" height="25"></td>
        </tr>
        <tr>
            <td width="234" height="8" colspan="5"><img src="<?=$g4['path']?>/img/search_down.gif" width="234" height="8"></td>
        </tr>
        </form>
        </table></td>
    <td></td>
</tr>
</table>

<script language="JavaScript">
function fsearchbox_submit(f)
{
    if (f.stx.value == '')
    {
        alert("검색어를 입력하세요.");
        f.stx.select();
        f.stx.focus();
        return;
    }

    /*
    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
    var cnt = 0;
    for (var i=0; i<f.stx.value.length; i++)
    {
        if (f.stx.value.charAt(i) == ' ')
            cnt++;
    }

    if (cnt > 1)
    {
        alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
        f.stx.select();
        f.stx.focus();
        return;
    }
    */

    f.action = "<?=$g4['bbs_path']?>/search.php";
    f.submit();
}
</script>
<!-- 검색 끝 -->

<div style='height:18px;'></div>

<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
    vertical-align:top;
    float:left;
}
#middiv #mleft  { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>

<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
    <td width=43></td>
    <!-- 왼쪽 메뉴 -->
    <td width=220 valign=top>
        <?=outlogin("basic"); // 외부 로그인 ?>

        <div style='height:10px;'></div>

        <?=poll("basic"); // 설문조사 ?>

        <div style='height:10px;'></div>

        <?=visit("basic"); // 방문자수 ?>

        <div style='height:10px;'></div>

        <?=connect(); // 현재 접속자수 ?>
    </td>
    <td width=18></td>
    <!-- 중간 -->
    <td width=683 valign=top>




<tail부분>



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>

</td>
<td width=40></td>
</tr></table>

<!-- 카피라이트 시작 -->
<table width="<?=$table_width?>" border="0" cellspacing="10" cellpadding="10">
<tr>
    <td valign="top" background="<?=$g4['path']?>/img/copyright.gif"><a href="#g4_head"><img src="<?=$g4['path']?>/img/icon.gif" width="15" height="12" border="0"></a><font color="#848484">Copyright ⓒ your-domain. All rights reserved.</font></td>
</tr>
</table>
<!-- 카피라이트 끝 -->
<?
include_once("$g4[path]/tail.sub.php");
?>

댓글 전체

#Layer1 {
position:absolute;
left:50%;
margin-left:-487.5px;
top:0px;
width:975px;
height:102px;
z-index:1;
}
-->

이 부분이랑
하단 테이블에 align=center 해주시면 정렬이 될것 같은데요.
그리고 head.sub.php 파일을 게시판에는 불러오고 일반 페이지는 안불러오는것 같은데 이부분도 체크 해보시고...
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT