최신댓글 등 넓이와 높이 조절은 어떻게 해야 합니까? 채택완료
<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}
너비를 수정하려면 위 세군데를 모두 수정해주어야 합니다.
서로 연관되기 때문에 그렇습니다.


답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 3개
style.css의 내용을 다 삭제해도 넓이와 높이(일명 와꾸) 등이 미동도 하지 않는군요~
다른 곳을 건드려야 할 것 같은데...
그누보드를 처음 사용하는데...구조를 이해하는대 한참 걸렸습니다.
지금도 일부 헤메이고 있지요.
아뭏든 감사합니다.
크롬에서 '개발자 도구'를 사용하면 찾기가 좀 수월합니다.
몇줄 안되지만 약간 복잡한 편이네요.
theme/community/skin/latest/new_latest/style.css
theme/community/skin/latest/basic/style.css
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
처음에는 잘 몰랐는데...
어느 날 갑자기 깨달았습니다.
다시한번 감사드립니다.