최신댓글 등 넓이와 높이 조절은 어떻게 해야 합니까?
본문
<div class="aside_lt">
<div class="lt">
<strong class="lt_title"><a href="<?php echo G5_BBS_URL ?>/new.php">최신 댓글</a></strong>
<?php
// new_latest('스킨', '출력라인', '글자수', 'is_comment', cache_minute)
echo new_latest('theme/new_latest', 6, 40, true, 5);
?>
<div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/new.php"><span class="sound_only">최신 댓글</span>더보기</a></div>
</div>
</div>
<div class="aside_lt">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/basic', 'news', 6, 20);
?>
</div>
위에서 보면 출력라인과 글자수는 조정이 되는데
초기 메인화면에서 볼 때 위의 최신댓글 및 뉴스를 감싸고 있는 테이블?의 width와 height는 뭘로 조절하나요?
css에 있는 default.css를 건드려야 하나요?
답변 2
theme/community/skin/latest/basic/style.css
를 예로 들어보면...
/* 새글 스킨 (latest) */
.lt_pc {float:left;margin-left:24px}
.lt_ml{margin-left:0}
.lt {width:343px;/*height:176px;*/position:relative;float:left;padding-bottom:45px}
.lt .lt_Box{padding:20px;width:301px;height:126px;border:1px solid #e8e8e8}
.lt ul {margin:0 0 10px;padding:0;list-style:none}
.lt li {padding:4px 0; width:300px; height:12px; overflow: hidden;}
.lt .no_bd{height:126px;text-align:center; line-height:100px}
.lt .lt_title {background:url("img/icon_blue.png") no-repeat 0 0; display:block; padding:0 0 14px 24px; height:11px}
.lt .lt_more a{height:16px;background:url("img/icon_more.gif") no-repeat top right; position:absolute;top:0px;right:0px; padding-right:23px;color:#696969;}
.lt .cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
너비를 수정하려면 위 세군데를 모두 수정해주어야 합니다.
서로 연관되기 때문에 그렇습니다.


theme/사용 테마/skin/latest/basic/style.css
'latest' 폴더에서 해당 스킨을 찾아보세요.