최신글 글간격 조정은 어찌해야 하나요? > 그누4 질문답변

그누4 질문답변

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

최신글 글간격 조정은 어찌해야 하나요? 정보

최신글 글간격 조정은 어찌해야 하나요?

본문

최신글 basic 스킨을 이용해서 메인을 꾸몄는데요.
 
aa.gif 
 
 
 
그림처럼 글 과 글 사이의 간격이 너무 넓어서 좀 줄일려고 합니다.
 
latest.skin.php 를 보니깐
 
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=center>
        <table width=95%>
        <tr>
            <td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>  
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
 
 
조기 빨간색 글씨처럼 높이를 지정하는게 있어서 줄였는데요..
약간은 줄었는데 별차이 없을정도만 줄어들어요...
다른곳에 조절하는게 있는거 같은데요... 이곳 sir.co.kr 의 메인의 최신글 정도의
글 간격이면 되거든요..
 
 
 
 
 
 
 
 
 
 
 

댓글 전체

혹시 이게 맞다면..
style.css에서 폰트 line-height 부분의 수치를 줄여보심이...
아니면 폰트 스타일을 하나 추가해서 그 부분에만 적용해보세요.;;
이게 맞을지는 모르겠지만 셀높이를 변경해도 안된다면...
(전체 html 이나 url이 없어서 확실히는 모르겠네요^^;;)

이런식으로...
style.css에서 추가
.main_1 { font-family:돋움;color:#000000;font-size:9pt;word-break:break-all;line-height:120%; }

latest.skin.php 에서
제목앞에 <font class=main_1>..

안된다면 어쩔 수 없지만, 혹시 html이라도 올려주심 제가 어떻게 해볼 수 있을거 같네요.;
알려주신대로 style에 추가하고 latest 스킨을 수정했는데요..

똑같습니다. 물론 색상은 여기서 지정한 색상으로 변경되는데요. 높이는 120% 하나 80% 하나 변함이
없네요...

html 이라고 하셨는데..

그냥 메인 index.php 에서 (게시판명이 test 이고요)
<?=latest("basic", "test", 3,12); ?>
요렇게 인쿨르드 한게 다거든요..


전부다 원래의 그누스킨이고요..손댄거 하나 없어요..
헛.. 제가 그누보드 파일을 이래저래 고쳐버려서
지금 페이지들 열고 이래저래 봤는데
제가 손댄 흔적들때문에 같은조건에서 보기가 힘드네요;ㅁ;
그냥 페이지 소스보기 해서 html 쭉 올려주심 될텐데;
그럼 어디선가 높이를 잡는 무엇이 있는지를 찾아볼 수 있거든요;;
index.php

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

$g4['title'] = "";
include_once("./_head.php");
?>

<!-- 메인화면 최신글 시작 -->
<?=latest("basic", "test", 3,12); ?>
<!-- 메인화면 최신글 끝 -->

<?
include_once("./_tail.php");
?>

이렇구요...

latest 스킨은(아래 처럼 원래거)

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

<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
    <td><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
    <td background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
    <td background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
    <td><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>

<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=center>
        <table width=95%>
        <tr>
            <td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
            <?
            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:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$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:#9A9A9A;'>{$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></tr>
        <tr><td bgcolor=#EBEBEB height=1></td></tr>
        </table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>
저는 하드코딩을 해서...
제가 쓰는 편법을 좀 알려드리자면

<table border="0" cellpadding="0" cellspacing="0" width="100%" style='table-layout:fixed;'>
<tr>
  <td></td>
</tr>
</table>
이런식으로 테이블을 사이즈를 잠궈버립니다-ㅁ-;;

<table width=95%> 이부분을
<table width=95% style='table-layout:fixed;'> 이렇게 하시고
<td>안에 높이를 입력해보세요.

진작 이걸 가르쳐드릴걸 그랬나;; ㅎ
도움되시길 바래요.
알려주신대로..
<table width=95%  style='table-layout:fixed;'>
        <tr>
            <td height=14><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
td를 14로 하니깐 전보다 더 줄었네요...
더하면 글씨가 다 안나와서..14로 했습니다. 근데 sir.co.kr 보다는 여전히 약간 넓어요..큰차이는 없지만...
몬가 다른게 더 있는지 모르겠네요...

답변감사했습니다.
전체 24 |RSS
그누4 질문답변 내용 검색

회원로그인

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