줄간격 좀 줄이고 싶은데..

줄간격 좀 줄이고 싶은데..

QA

줄간격 좀 줄이고 싶은데..

본문

사진이 나오고 아래 정보가 나오게 할려고 하고 있는데
간격이 너무 넓어서 줄일려고 하는데 잘 안되네요.

 

http://ktcpg.com/bbs/bbs/board.php?bo_table=gallery1

 

소스 입니다.

 

아시는 분 좀 알려주세요

사진 밑에 나오는 정보들 줄간격이 너무 넓어서 줄이고 싶거든요.

height=10 ​이런식으로 넣었는데 안 줄어드네요.

 

 

<table width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td colspan=<?=$colspan?> class="bbs_line2"></td>
    </tr>
    <tr>
    <?
    for ($i=0; $i<count($list); $i++) {
        if ($i && $i%$mod==0)
            echo "</tr><tr>";
        $style = "";
        $subject = "<span $style>{$list[$i][subject]}</span>";

        $comment_cnt = "";
        if ($list[$i][comment_cnt])
           $comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:10px;'><font face='Tahoma' color='#EE5A00'>{$list[$i][comment_cnt]}</span></a>";

        $list[$i][name] = preg_replace("/<img /", "<img style='display:none;' ", $list[$i][name]);
        $list[$i][name] = preg_replace("/> <span/", "><span", $list[$i][name]);
        $list[$i][name] = preg_replace("/class='member'/", "", $list[$i][name]);

        echo "<td width='{$td_width}%' valign=top style='word-break:break-all; padding:2px 0 0 0;'>";
        echo "<table align=center>";
        echo "<tr><td height=1></td></tr>";
        echo "<tr><td align=center><div style='float:left; border:1px solid #ccc; background:#fff; padding:0px; font-size:0; line-height:0;'><a href='{$list[$i][href]}'>".makeThumbs($g4[path]."/data/file/$bo_table", $list[$i][file][0][file], $board[bo_1], $board[bo_2], cut_str($list[$i][subject],20))."</a></div></td></tr>";
        echo "<tr><td align=center class=lh height=10>";
        if ($is_category) echo "<a href='{$list[$i][ca_name_href]}'>[{$list[$i][ca_name]}]</a> ";
        echo "<a href='{$list[$i][href]}'>$subject</a>";
        echo " " . $list[$i][icon_new];
        echo " " . $list[$i][icon_link];
        echo " " . $list[$i][icon_hot];
        echo " " . $list[$i][icon_secret];
        echo "</td></tr>";
  echo "<tr><td height=10  align=center style='font-size:11px; color:#333333;'>".$list[$i][wr_name]."</td></tr>";   
  echo "<tr><td height=10 align=center style='font-size:11px; color:#333333;'>Comment:".$list[$i][wr_comment]."  <span style='font-size:9px;color:#333333;'>|</span>  Hit :".$list[$i][wr_hit]." <span style='font-size:9px;color:#333333;'> |</span>  Good :".$list[$i][wr_good]."</td></tr>";  
  echo "<tr><td height=10 align=center style='font-size:11px; color:#333333;'>".$list[$i][wr_datetime]."</td></tr>";      
        if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
        echo "</table></td>\n";
    }

    // 나머지 td
    $cnt = $i%$mod;
    if ($cnt)
        for ($i=$cnt; $i<$mod; $i++)
            echo "<td width='{$td_width}%'> </td>";
    ?>
    </tr>
    <? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=400 align=center>게시물이 없습니다.</td></tr>"; } ?>
 <tr><td colspan='<?=$mod?>' height="25"></td></tr>
    <tr><td colspan=<?=$mod?> class='bbs_line'>
    </table>​

이 질문에 댓글 쓰기 :

답변 1

소스보면 두가지 선택이 되어 있어서 그런듯 하네요.

 

<td height=10 에서는 넓은 너비는 아닌데.

 

common.css 80라인을 찾아보면 line-height: 18px;  선언이 되어 있네요. 

둘중 하나로 적합히 사용하면 간격을 좁힐수 있을것 같습니다. 

답변을 작성하시기 전에 로그인 해주세요.
전체 116
QA 내용 검색

회원로그인

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