게시판에서요. 아무리 width를 늘려줘도 게시판 제목표시줄 가로길이가 안늘어나요.

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
게시판에서요. 아무리 width를 늘려줘도 게시판 제목표시줄 가로길이가 안늘어나요.

QA

게시판에서요. 아무리 width를 늘려줘도 게시판 제목표시줄 가로길이가 안늘어나요.

본문

ucnetworks_co_kr_20140102_100851.jpg

그림에 보이는 대로 기타탭 끝까지 연보라 게시판 제목표시줄을 늘려주고 싶은데..
아무리 해당하는 부분의 width값을 줘도 그대로 네요.
 
list.skin 소스는 요렇습니다.
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 10;
//if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style>
.board_top { clear:both; }
.board_list { clear:both; width:100%; table-layout:fixed; margin:0px 0 0 0; font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; overflow:auto;}
.board_list th { font-weight:bold; font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; color:#241f5e; font-size:12px;}
.board_list th { background:url(<?=$board_skin_path?>/img/title_bg1.gif) repeat-x; }
.board_list th { white-space:nowrap; height:34px; overflow:hidden; text-align:center; }
.board_list th { border-top:2px solid #241f5e; border-bottom:1px solid #b9b7cb; }
/*수정 바로위 게시판 타이틀라인*/
.board_list tr.bg0 { background-color:#fafafa; }
.board_list tr.bg1 { background-color:#ffffff; }
.board_list td { padding:.5em; }
.board_list td.bbt { border-bottom:1px solid #241f5e; }
.board_list td { border-bottom:1px solid #b9b7cb; }
.board_list td.num { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:12px; color:#5e5e5e; text-align:center; }
.board_list td.checkbox { text-align:center; }
.board_list td.subject { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:12px; color:#5e5e5e; overflow:hidden; padding-bottom:10px; padding-top:10px; text-decoration:none; }
.board_list td.subject a:link, .board_list td.subject a:visited, .board_list td.subject a:active, .board_list td.subject a:hover { overflow:hidden; font-size:12px; font-weight:; color:#5e5e5e; letter-spacing:0px; }
.board_list td.name { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:12px; color:#5e5e5e; text-align:center; }
.board_list td.datetime { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:12px; color:#5e5e5e; text-align:center; }
.board_list td.hit { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:12px; color:#5e5e5e; text-align:center; }
.board_list td.good { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.nogood { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list .notice { font-weight:normal; }
.board_list .current { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:12px; color:#5e5e5e; }
.board_list .comment { font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Arial, Sans-serif; font-size:10px; color:#5e5e5e; }
.board_button { clear:both; margin:10px 0 0 0; }
.board_page { clear:both; text-align:center; margin:3px 0 0 0; }
.board_page a:link { color:#777; }
.board_search { text-align:center; margin:10px 0 0 0; padding-top:20px; padding-left:70px; height:59px; background:url(<?=$board_skin_path?>/img/btn_su_search_bbg.gif) repeat-x; }
.board_search .stx { height:15px; border:1px solid #9A9A9A; border-right:1px solid #D8D8D8; border-bottom:1px solid #D8D8D8; }
</style>
<!-- 게시판 목록 시작 -->
<table width="774px" align="center" cellpadding="0" cellspacing="0"><tr><td>
  <!-- 검색 -->
    <div class="board_search">
        <form name="fsearch" method="get">
        <input type="hidden" name="bo_table" value="<?=$bo_table?>">
        <input type="hidden" name="sca"      value="<?=$sca?>">
        <input name="stx" required class="stx" value='<?=stripslashes($stx)?>' size="40" maxlength="76" itemname="검색어">
        <input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" border='0' align="absmiddle">
    
        </form>
    </div>

    <!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
    <div class="board_top">
        <div style="float:left;" width="100%">
            <form name="fcategory" method="get" style="margin:0px;">
            <!-- 기존베이직거 수정하고 아래 두줄추가한다 인클루드 시킨다 탭형게시판 -->
   <? if ($is_category) { ?>
            <? include_once("_inc_category_tab.php"); ?>
            <? } ?>
            </form>
        </div>
      
    </div>
    <!-- 제목 -->
    <form name="fboardlist" method="post">
    <input type='hidden' name='bo_table' value='<?=$bo_table?>'>
    <input type='hidden' name='sfl'  value='<?=$sfl?>'>
    <input type='hidden' name='stx'  value='<?=$stx?>'>
    <input type='hidden' name='spt'  value='<?=$spt?>'>
    <input type='hidden' name='page' value='<?=$page?>'>
    <input type='hidden' name='sw'   value=''>
    <table width="774px" cellspacing="0" cellpadding="0" class="board_list">
    <col width="50" />
    <? if ($is_checkbox) { ?><col width="40" /><? } ?>
    <col />
    <col width="110" />
    <col width="40" />
    <col width="50" />
    <tr height="37">
        <th width="40%" height="37">번호</th>
        <? if ($is_checkbox) { ?><th width="10%"><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox"></th><?}?>
        <th width="60%">제목</th>
        <!--글쓴이<th>글쓴이</th>-->
        <th width="5%"><?=subject_sort_link('wr_datetime', $qstr2, 1)?>
          <span style="color:#241f5e;">등록일</span></a></th>
        <th width="5%"><?=subject_sort_link('wr_hit', $qstr2, 1)?><span style="color:#241f5e;">조회수    </span></a></th>
    </tr>
    <?
    for ($i=0; $i<count($list); $i++) {
        $bg = $i%2 ? 0 : 1;
    ?>
    <tr class="bg<?=$bg?>">
        <td height="37" class="num">
            <?
            if ($list[$i][is_notice]) // 공지사항
                echo "<b>공지</b>";
            else if ($wr_id == $list[$i][wr_id]) // 현재위치
                echo "<span class='current'>{$list[$i][num]}</span>";
            else
                echo $list[$i][num];
            ?>
        </td>
        <? if ($is_checkbox) { ?><td class="checkbox"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
        <td align="left" class="subject">
            <?
            echo $nobr_begin;
            echo $list[$i][reply];
            echo $list[$i][icon_reply];
            if ($is_category && $list[$i][ca_name]) {
                echo "<span class=small><font color=gray>[<a href='{$list[$i][ca_name_href]}'>{$list[$i][ca_name]}</a>]</font></span> ";
            }
            if ($list[$i][is_notice])
                echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>";
            else
                echo "<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
            if ($list[$i][comment_cnt])
                echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></a>";
            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
            echo " " . $list[$i][icon_new];
            echo " " . $list[$i][icon_file];
            echo " " . $list[$i][icon_link];
            echo " " . $list[$i][icon_hot];
            echo " " . $list[$i][icon_secret];
            echo $nobr_end;
            ?>
        </td>
       <!-- <td class="name"><?=$list[$i][name]?></td>글쓴이-->
        <td class="datetime"><?=$list[$i][datetime2]?></td>
        <td class="hit"><?=$list[$i][wr_hit]?></td>
    </tr>
    <? } // end for ?>
    <? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
    </table>
    </form>

이 질문에 댓글 쓰기 :

답변 4

글쓴이 부분의 <th>와 <td>를 단순주석처리하셨군요.
그래서 아래 colspan 수치와 맞지 않네요.

colspan값을 직접 넣어서 알맞게 조정해주시구요.
위애 <col> 개수도 맞추셔야 합니다.

아항~ 아직 수정 시도는 해보지 않았지만 퀼퀼 님의 명쾌한 해답을 보니 그런 것 같애요^^ 와우~ 네네 지금 바로 시정토록 하곘습니다. 정말 감사드립니다. 퀼퀼님은 it업계의 셜록홈즈^^

중간에 보이는

<table width="774px" align="center" cellpadding="0" cellspacing="0"><tr><td>

여기서 width 값이 774px 로 되어 있어서 그런것 같은데요.


저 소스코드만봐서는
table 두곳에 width="774px"가 먹혀있네요
일단 둘다 100%로 수정하시면 확장되는건 수정이될거라고 봅니당..
수정이안된다면 다른데서 제어하고 있는 곳이 있다는이야긴데...
해당pages url이 있어야... 찾을수 있을거 같은데용~_~
답변을 작성하시기 전에 로그인 해주세요.
전체 24
QA 내용 검색

회원로그인

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