최신글 위아래 간격 어떻게 띄우나요.. 정보
최신글 위아래 간격 어떻게 띄우나요..본문
simple_st2 스킨을 쓰고 있습니다. 단과 단 위아래 간격을 좀 띄우고 싶습니다.
letest > simple_st2 스킨에 파일을 수정해줘야하는거 같기도하고 index.php
수정해줘야하는거 같기도해서 둘다 수정 이것저것 해봤는데 위아래 간격만 없더군요.
ㅠㅠ 어떤걸 수정해야하는지..초보라 도움 좀 부탁드립니다. ▼ simple_st2(simp) 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$border_color = "#6fccde"; // 테투리 컬러
$border_spacing = "1"; // 테투리 크기
$title_bottom_color = "#01a4c7"; // 타이틀 아래 컬러
$border_space = "10"; // 테투리 안쪽 공간
$dot_bg_cnt = 4; // 구분선 표시 리스트 수
?>
<style>
/*a {color:#444;text-decoration:none;}
a:hover{color:#4559E9;text-decoration:underline;}*/
.latest_title a{color:#000000;}
.latest_title a:link,a:visited{color:#000000;}
.latest_title a:hover{color:#000000;}
.latest_list a{color:#333333;}
.latest_list a:link,a:visited{color:#333333;}
.latest_list a:hover{color:#333333;}
</style>
<table width='100%' border='0' cellpadding='0' cellspacing='<?=$border_spacing?>' bgcolor='<?=$border_color?>'>
<tr>
<td bgcolor='#ffffff' style='padding:<?=$border_space?>px;'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr><td class='latest_title'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><b><?=$board[bo_subject]?></b></a></td></tr>
<tr><td height='3'></td></tr>
<tr><td height='1' bgcolor='<?=$title_bottom_color?>'></td></tr>
<tr><td height='7'></td></tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr><td height='22' class='latest_list'><img src='<?=$latest_skin_path?>/img/arr.gif' border='0' style='margin-bottom:4px;margin-right:3px;'><?
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 "{$list[$i]['subject']}";
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>
<?
if ($i+1%$dot_bg_cnt == $dot_bg_cnt){
echo "<tr><td height='1' background='{$latest_skin_path}/img/dot_bg.gif'></td></tr>";
echo "<tr><td height='3'></td></tr>";
}
?>
<? } ?>
<? if (count($list) == 0) { ?><!--<tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr>//--><? } ?>
</table>
</td>
</tr>
</table>
letest > simple_st2 스킨에 파일을 수정해줘야하는거 같기도하고 index.php
수정해줘야하는거 같기도해서 둘다 수정 이것저것 해봤는데 위아래 간격만 없더군요.
ㅠㅠ 어떤걸 수정해야하는지..초보라 도움 좀 부탁드립니다. ▼ simple_st2(simp) 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$border_color = "#6fccde"; // 테투리 컬러
$border_spacing = "1"; // 테투리 크기
$title_bottom_color = "#01a4c7"; // 타이틀 아래 컬러
$border_space = "10"; // 테투리 안쪽 공간
$dot_bg_cnt = 4; // 구분선 표시 리스트 수
?>
<style>
/*a {color:#444;text-decoration:none;}
a:hover{color:#4559E9;text-decoration:underline;}*/
.latest_title a{color:#000000;}
.latest_title a:link,a:visited{color:#000000;}
.latest_title a:hover{color:#000000;}
.latest_list a{color:#333333;}
.latest_list a:link,a:visited{color:#333333;}
.latest_list a:hover{color:#333333;}
</style>
<table width='100%' border='0' cellpadding='0' cellspacing='<?=$border_spacing?>' bgcolor='<?=$border_color?>'>
<tr>
<td bgcolor='#ffffff' style='padding:<?=$border_space?>px;'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr><td class='latest_title'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><b><?=$board[bo_subject]?></b></a></td></tr>
<tr><td height='3'></td></tr>
<tr><td height='1' bgcolor='<?=$title_bottom_color?>'></td></tr>
<tr><td height='7'></td></tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr><td height='22' class='latest_list'><img src='<?=$latest_skin_path?>/img/arr.gif' border='0' style='margin-bottom:4px;margin-right:3px;'><?
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 "{$list[$i]['subject']}";
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>
<?
if ($i+1%$dot_bg_cnt == $dot_bg_cnt){
echo "<tr><td height='1' background='{$latest_skin_path}/img/dot_bg.gif'></td></tr>";
echo "<tr><td height='3'></td></tr>";
}
?>
<? } ?>
<? if (count($list) == 0) { ?><!--<tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr>//--><? } ?>
</table>
</td>
</tr>
</table>
댓글 전체
스킨페이지는 아닌것 같고
index.php에서 예전에는 table로 했는데
요즘은 css로 조정합니다.
걍 그누보드냐 DTD버전 그누보드 냐에 따라 다르겠네요
걍 그누면 table로 스킨 출력되는 부분들을 감싸서 중간에 10px정도의 빈줄을 넣어도 되고
DTD면 CSS로 조절 하셔야 할듯
index.php에서 예전에는 table로 했는데
요즘은 css로 조정합니다.
걍 그누보드냐 DTD버전 그누보드 냐에 따라 다르겠네요
걍 그누면 table로 스킨 출력되는 부분들을 감싸서 중간에 10px정도의 빈줄을 넣어도 되고
DTD면 CSS로 조절 하셔야 할듯