최신겔러리 이미지간격요
본문
이미지와 이미지 사이에 간결을 주려고 하는데 스타일로 줘도 간격이 안생기네요.
어떻게 방법없을까요?
=======================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$gr = get_group($gr_id);
$img_quality = 100; //썸네일 퀄리티
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]);
$thumb_path = $data_path.'/thumb_big4';
$ym = date("ym", $g4[server_time]);
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
?>
<style type="text/css">
@chmod($thumb_path, 0707);
?>
<style type="text/css">
.img-wrap{
margin-right: 6px;
margin-left: 6px;
}
</style>
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(" "," ",$list[$i]['content']);
<? 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(" "," ",$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
padding값을 줘보세요
<img src="<?=$file01?>" alt="" border="0" onmouseover="this.src='<?=$file02?>';" onmouseout="this.src='<?=$file01?>';" style="margin:0 6px;"/>
답변을 작성하시기 전에 로그인 해주세요.