최근 게시물에서 글자 배열을 바꿀려고 합니다,

최근게시물에서....
뿌려질 내용에 글자 배열을 센터 말고 왼쪽 정렬 하려는데 잘 모르겟네여...
아시는분 계신가요??

http://madeinweb.co.kr/~ff498


latest.skin.php 파일 내용

<?
for ($i=0; $i<count($list); $i++)
{
$title = get_text($list[$i][wr_subject]);
$content = cut_str(strip_tags($list[$i][wr_content]),110,"...");

// 태그 웹표준으로 변경
$content = str_replace("<P>", "", $content);
$content = str_replace("</P>", "", $content);
$content = str_replace("<BR>", "", $content);


$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&amp;wr_id={$list[$i][wr_id]}";

$upday = cut_str($list[$i][wr_datetime], 10, "");
$tmp = explode("-", $upday);
$upday = $tmp[0]."년 ".$tmp[1]."월 ".$tmp[2]."일";

echo "
<div style='float:left;'>
<a href='$href'>
<img src='{$img}' class='imgBoxContent1' alt='' />
</a>
</div>
<div style='float:left;' class='ctview1'>
<a href='$href'>
<b>{$list[$i][subject]}</b> {$list[$i]['comment_cnt']}
<br />
<span>$content</span>
</a>
<div class='ctviewDate1'>($upday)&nbsp;</div>
</div>

<div style='clear:both; margin:5px;'></div>
";

}
?>

<? if (count($list) == 0) { ?>
<div>게시물이 없습니다.</div>
<? } ?>

입니다....

리플에 탑스쿨님께서
위에서 부터 센터 정렬이 있어서 그런거 같으신대요
요렇게
<div style='float:left;' class='ctview1' align="left">
요렇게
<div class='ctviewDate1' align="left">
바꿔죠보세요

이렇게 적어주셨는데...
저렇게 적으니 에러 뜹니다...
다르게 적는 방법 없나요???
|

댓글 2개

align="left"



align='left'

로 해보세요
class='ctview1' 에 뭐가 있나요?
이 안에다가 text-align:left; 줘 보세요

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고