테이블에 붙어서 출력되는 최신글 위치 조정좀 하려고 하는데요 > 그누4 질문답변

그누4 질문답변

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

테이블에 붙어서 출력되는 최신글 위치 조정좀 하려고 하는데요 정보

테이블에 붙어서 출력되는 최신글 위치 조정좀 하려고 하는데요

본문

안녕하세요
이곳 고수님들께 많이 배워서 이제 질문 없이 잘 진행해가고 있는데요
거의 마무리 되던차 요게 막혀서 문의 좀 드릴게요
빨간 부분을 보시면 최신글이 너무 붙어서 출력이 되는데요

이걸 아래부분의 빨간 부분처럼 여분의 공간을 주구선 출력하고 싶습니다.
스킨의 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 파일입니다

댓글 전체

앗, 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>

로 한번 바꿔보세요. ^^;
(그리고 급하시면 쪽지주세요.. 제가 계속 이글을 확인할 수는 없으니..^^)
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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