테이블에 붙어서 출력되는 최신글 위치 조정좀 하려고 하는데요 정보
테이블에 붙어서 출력되는 최신글 위치 조정좀 하려고 하는데요본문
안녕하세요
이곳 고수님들께 많이 배워서 이제 질문 없이 잘 진행해가고 있는데요
거의 마무리 되던차 요게 막혀서 문의 좀 드릴게요
빨간 부분을 보시면 최신글이 너무 붙어서 출력이 되는데요
이걸 아래부분의 빨간 부분처럼 여분의 공간을 주구선 출력하고 싶습니다.
스킨의 laters 파일 올려 봅니다 조언 좀 부탁 드리겠습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$latest_width = "350"; //탭메뉴 폭과 같게
?>
<style>
.la_he { font-size:12px; color:#868585; line-height:180%;}
.la_he a:link, a:visited, a:active { text-decoration:none; color:#000000; }
.la_he a:hover { text-decoration:none; color:#4b4b4b; }
</style>
<table width="<?=$latest_width?>" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="3"></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="la_he">
<?
$subject = "<span>".cut_str($list[$i][subject],100)."</span>"; //제목 글자수 자르기
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$subject}</a>";
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td align="center" height="50"><font color="#868585">게시물이 없습니다.</font></td></tr><? } ?>
</tr>
</table>
----------------------------------------------------------여기까지가 laters 파일이구요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/skin/latest/img_tab/tab_img"; //이미지 경로
$tab_bo1 = "011"; //공지사항
$tab_bo2 = "022"; //무료나눔
$tab_bo3 = "016"; //이벤트
?>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 3; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:url('<?=$tab_img?>/tabbar_bg.gif') top repeat-x;">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>"><img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>"><img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo3?>"><img id="tab_bar3" style="cursor:pointer;" onMouseOver="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="120" height="24" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
<div id="tab_view2" style="display: none"><?=latest('img_tab',$tab_bo2, 7, 55);?></div>
<div id="tab_view3" style="display: none"><?=latest('img_tab',$tab_bo3, 7, 55);?></div>
</td>
</tr>
</table>
------------------------------------------------------ 여기까지가 main.tap.php 파일입니다
이곳 고수님들께 많이 배워서 이제 질문 없이 잘 진행해가고 있는데요
거의 마무리 되던차 요게 막혀서 문의 좀 드릴게요
빨간 부분을 보시면 최신글이 너무 붙어서 출력이 되는데요
이걸 아래부분의 빨간 부분처럼 여분의 공간을 주구선 출력하고 싶습니다.
스킨의 laters 파일 올려 봅니다 조언 좀 부탁 드리겠습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$latest_width = "350"; //탭메뉴 폭과 같게
?>
<style>
.la_he { font-size:12px; color:#868585; line-height:180%;}
.la_he a:link, a:visited, a:active { text-decoration:none; color:#000000; }
.la_he a:hover { text-decoration:none; color:#4b4b4b; }
</style>
<table width="<?=$latest_width?>" cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="3"></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td class="la_he">
<?
$subject = "<span>".cut_str($list[$i][subject],100)."</span>"; //제목 글자수 자르기
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$subject}</a>";
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td align="center" height="50"><font color="#868585">게시물이 없습니다.</font></td></tr><? } ?>
</tr>
</table>
----------------------------------------------------------여기까지가 laters 파일이구요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/skin/latest/img_tab/tab_img"; //이미지 경로
$tab_bo1 = "011"; //공지사항
$tab_bo2 = "022"; //무료나눔
$tab_bo3 = "016"; //이벤트
?>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 3; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:url('<?=$tab_img?>/tabbar_bg.gif') top repeat-x;">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>"><img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>"><img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.gif" width="120" height="24" border="0"></a></td>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo3?>"><img id="tab_bar3" style="cursor:pointer;" onMouseOver="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="120" height="24" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
<div id="tab_view2" style="display: none"><?=latest('img_tab',$tab_bo2, 7, 55);?></div>
<div id="tab_view3" style="display: none"><?=latest('img_tab',$tab_bo3, 7, 55);?></div>
</td>
</tr>
</table>
------------------------------------------------------ 여기까지가 main.tap.php 파일입니다
댓글 전체

마지막 <td> (latest들을 포함하는 div들이 들어있는) 에
margin-left: 10px;
정도 주면 되지 않을까요? ^^
margin-left: 10px;
정도 주면 되지 않을까요? ^^
안녕하세요 전진님
혹 이글을 보신다면 정확하게 어디에 어떻게 적용하는지 좀 알려주셔요
혹 이글을 보신다면 정확하게 어디에 어떻게 적용하는지 좀 알려주셔요

앗, padding-left 를 사용하셔야 할것 같네요.. ^^;
<td>
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
를
<td style="padding-left:10px;">
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
로 한번 바꿔보세요. ^^;
(그리고 급하시면 쪽지주세요.. 제가 계속 이글을 확인할 수는 없으니..^^)
<td>
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
를
<td style="padding-left:10px;">
<div id="tab_view1"><?=latest('img_tab',$tab_bo1, 7, 55);?></div>
로 한번 바꿔보세요. ^^;
(그리고 급하시면 쪽지주세요.. 제가 계속 이글을 확인할 수는 없으니..^^)
안녕하세요 전진님 알려 주신대로 적용하니 바로 변경이 되었습니다.
이렇게 또 하나 배웠네요...^^
정말 감사합니다 편안한 밤 되세요..^^
이렇게 또 하나 배웠네요...^^
정말 감사합니다 편안한 밤 되세요..^^