채택완료

최신겔러리 이미지간격요

2014-01-10 (금) 04:18:06 4,582
이미지와 이미지 사이에 간결을 주려고 하는데 스타일로 줘도 간격이 안생기네요.
어떻게 방법없을까요?
=======================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$img_quality = 100; //썸네일 퀄리티
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_big4';
$ym = date("ym", $g4[server_time]);
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<style type="text/css">
.img-wrap{
 margin-right: 6px;
 margin-left: 6px;
}
</style>
<table width="100%"  border="0" align="left" cellpadding="0" cellspacing="0">
 <? for ($i=0; $i<count($list); $i++) {?>
 <tr>
  <td>
  <table border="0" cellpadding=0 cellspacing=0>
    <tr>
     
  <?
for ($i=0; $i<count($list); $i++) {
$list[$i]['content']=eregi_replace("&nbsp;"," ",$list[$i]['content']);
 
 if($list[$i][file][0][file]) {
  $file = "<img src='".$list[$i][file][0][path] .'/'. $list[$i][file][0][file]."'>";
 } else {
  $file="";
 }
?>
      <td class="img-wrap" align=center>
 <?
      for ($i=0; $i<count($list); $i++) {
   $file01 = "$data_path/".urlencode($list[$i][file][0][file]);
   $file02 = "$data_path/".urlencode($list[$i][file][1][file]);
   $link_01 = $list[$i][wr_link1];
  ?><a href="<?=$link_01?>"><img src="<?=$file01?>" alt="" border="0" onmouseover="this.src='<?=$file02?>';" onmouseout="this.src='<?=$file01?>';" /></a><? }?>
        </td>
      <? if($i!=count($list)-1) { ?>
     
      <? } ?>
  <? } ?>
      </tr>
   
  <? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=30><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>
   
  </table>
</td> </tr>
  <? } ?>
  <? if (count($list) == 0) { ?><? } ?>
</table>
|

답변 2개

채택된 답변
+20 포인트
padding값을 줘보세요
<img src="<?=$file01?>" alt="" border="0" onmouseover="this.src='<?=$file02?>';" onmouseout="this.src='<?=$file01?>';" style="margin:0 6px;"/>

답변을 작성하려면 로그인이 필요합니다.