최근갤러리 스킨 질문

11.jpg
첨부파일에 올린 스킨을 적용시키고
최근갤러리에 이미지가 최대 4개가 나오게끔 적용을했어요

그리고 갤러리 게시판에 이미지를 2개를 올리면
위에 첨부한 이미지처럼 왼쪽부터 순서대로 정렬이 안되고
2번째 이미지가 1번째 이미지 바로 오른쪽으로 안오고 저 멀리 정렬이 되요..

이미지가 순서대로 왼쪽부터 정렬되어서 나오도록 할려면
어떻게해야되나요?

첨부파일

11.jpg (7.4 KB)
2회 2013-03-04 11:06
latest.skin.php (1.3 KB) 5회 2013-03-04 11:06
|

댓글 2개

div에는 align="left" 안먹히구요
<table width='64' border='0' cellpadding='0' cellspacing='0' align='left'>
<tr>
<td width='64' height='2' align='left'></td>
</tr>
<tr>
<td width='64' height='34' align='left'>
<div style='width:64px;height:34px;padding:0px' align='left'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='64' height='34' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
</table>
이렇게 바꿔보세여 깨지면 어쩔수 없이 상단 div style안에 text-align:left;만 추가하시구요
<div style='float:left;width:64px;height:34px;padding:0px;text-align:left;'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='64' height='34' border='0' align='absmiddle' title='$title'></a>
</div>
아래 소스처럼 수정했는데 아무런 변화가 없어요....


<table width=100% border=0>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=5></td>';

$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 64);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

echo <<<HEREDOC
<td width='64' valign='top' align='left'>
<table width='64' border='0' cellpadding='0' cellspacing='0' align='left'>
<tr>
<td width='64' height='2' align='left'></td>
</tr>
<tr>
<td width='64' height='34' align='left'>
<div style='width:64px;height:34px;padding:0px' align='left'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='64' height='34' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
</table>
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
12년 전 조회 1,581
12년 전 조회 975
12년 전 조회 1,590
12년 전 조회 2,557
12년 전 조회 1,602
12년 전 조회 971
12년 전 조회 2,023
12년 전 조회 991
12년 전 조회 1,570
12년 전 조회 1,065
12년 전 조회 977
12년 전 조회 867
12년 전 조회 1,687
12년 전 조회 964
12년 전 조회 745
12년 전 조회 732
12년 전 조회 1,617
12년 전 조회 1,563
12년 전 조회 797
12년 전 조회 2,330
🐛 버그신고