공지글 간격이 너무 벌어져 있어요. 좀 좁힐려구 하는데.....height를 바꿔도 변화가 없네요.

공지글 간격이 너무 벌어져 있어요. 좀 좁힐려구 하는데.....height를 바꿔도 변화가 없네요.

QA

공지글 간격이 너무 벌어져 있어요. 좀 좁힐려구 하는데.....height를 바꿔도 변화가 없네요.

답변 1

본문

아래그림에 보이시는 대로 공지사항과 온라인 상담이 4줄이면 칸에 맞게 꽉차는데
지금 2줄이 되니까 2번째 칸에 있어야 공지글이 3번째에 와있어요.
공지사항도 그렇고 온라인상담도 그렇고 .. 제가 lastest.php에 공지글<tr>과<td>에
valign="top"을 줬는데도 도통 변화가 없고 그러네요. 당최 무엇이 잘못됫는지..ㅜ.ㅜ.
상관의 압박이 들어와 긴급히 질문 올립니다.
아래소스는 온라인 상담 lastest.php 입니다.
 
ucnetworks_co_kr_20140108_103626.jpg
 
 
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.moku  {  font-family:돋움; font-size:9pt;  line-height:130%;}
.moku a {  color:#838383;}
</style>
<table width=336 cellpadding=0  cellspacing=0 border="0">
<tr >
    <td height="36" rowspan="2"><img src='<?=$latest_skin_path?>/img/on_com_tab.gif' /></td>
<td height="1" ></td>
    </tr>
  <tr>
       
    <td width="23" ><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='../images/jch/main/more.jpg' border=0></a></td>
  </tr>
  <tr>
<td height="1"  colspan="2" bgcolor="#cccccc">
</td>
</tr>
  <tr>
<td height="11"  colspan="2" >
</td>
</tr>
</table>

<table width=336 cellpadding=0 style="vertical-align:top;" height=95  cellspacing=0 border="0" bgcolor="#ffffff">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=left valign="top">
        <table width=336 style="vertical-align:top;" height="16"  cellpadding=0   cellspacing=0 border="0" >
        <tr valign="top">
          <td width="5" valign="top"></td>
       
            <td height=16 align="left" valign="top" style="color:#838383" class="moku" ><img src='<?=$latest_skin_path?>/img/latest_icon.gif'>    
          <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family:돋움; font-size:9pt; color:#838383;'>{$list[$i]['subject']}</font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; color:#838383;'>{$list[$i]['subject']}</font>";
            echo "</a>";
            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#838383;'>{$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'];
            ?></td>
 <td width='70' align='center' valign="top" class='la_he' style='padding-top:0px;'><span style='font-size:8pt; color:#838383;'><?=$list[$i][datetime]?></span>
   </td>        </tr>
    </table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
</table>

이 질문에 댓글 쓰기 :

답변 1

table 자체에 height가 95로 설정되어져 있네요. table height를 지우시고 td height로 조절하시면 될듯합니다.
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 10,637
© SIRSOFT
현재 페이지 제일 처음으로