고수님들 도와주세요 갤러리 목록출력 정렬 ㅠㅠ 정보
고수님들 도와주세요 갤러리 목록출력 정렬 ㅠㅠ본문
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=47702&page=1&sca=&sfl=wr_subject%7C%7Cwr_content&stx=choi_gallery1&spt=0&page=1&cwin=#c_122456
여기 스킨을 아주 잘쓰고 있는데
목록을 좌측부터 일정한 간격으로 출력하고 싶은데 어캐해야 하나요?
현재 이미지가 아래와 같이 뿌려져서요.... 고수님들 도와주세요.
여기 스킨을 아주 잘쓰고 있는데
목록을 좌측부터 일정한 간격으로 출력하고 싶은데 어캐해야 하나요?
현재 이미지가 아래와 같이 뿌려져서요.... 고수님들 도와주세요.
댓글 전체

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
?>
<div style="float:left;margin:0px 3px 0px 3px;">
<table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_file_view[$i]?></td></tr></table>
</div>
<?}?>
</td>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
<tr>
<td>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
?>
<div style="float:left;margin:0px 3px 0px 3px;">
<table cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_file_view[$i]?></td></tr></table>
</div>
<?}?>
</td>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
와~~~~~ 되요~~~ 해결했어요~~~ 너무너무 감사합니다~~~~^^