최신글 목록에 내용 보이기

현재는 제목과 내용이 겹처있습니다 

제목 밑으로 내용이 나오고 

내용의 길이를 제한하고싶습니다 

감사합니다

 

 

 

최신글 코드입니다

<div id="kboard-ocean-gallery-latest">
    <?php while($content = $list->hasNext()):?>
        <div class="kboard-ocean-gallery-latest-item">
            <div class="kboard-ocean-gallery-latest-thumbnail"><?php if($content->thumbnail_file):?><a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><img src="<?php echo kboard_resize($content->thumbnail_file, 309, 164)?>" style="width: 100%; height: 100%" alt="<?php echo $content->thumbnail_name?>"></a><?php echo $content->content?><?php else:?><div class="kboard-no-image"><a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><i class="icon-picture"></i></a></div><?php endif?></div>
            <div class="kboard-ocean-gallery-latest-title cut_strings"><a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><?php echo $content->title?></a></div>
        </div>
    <?php endwhile?>
</div>

 

 

최신글 css입니다

 

 

@charset "utf-8";
/**
 * @author http://www.cosmosfarm.com/
 */

img { border: 0; }
.cut_strings { width: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; word-wrap: normal; }

.kboard-ocean-gallery-button-small,
.kboard-ocean-gallery-button-small:link,
.kboard-ocean-gallery-button-small:visited { display: inline-block; margin: 0 !important; padding: 0 10px !important; height: 28px; line-height: 28px; font-size: 12px !important; font-weight: normal; color: white !important; background-image: none !important; background-color: #000000 !important; border: none; border-radius: 0; text-decoration: none; cursor: pointer; vertical-align: middle; text-shadow: none; }
.kboard-ocean-gallery-button-small:hover,
.kboard-ocean-gallery-button-small:focus,
.kboard-ocean-gallery-button-small:active { display: inline-block; margin: 0 !important; padding: 0 10px !important; height: 28px; line-height: 28px; font-size: 12px !important; font-weight: normal; color: white !important; background-image: none !important; background-color: #000000 !important; border: none; border-radius: 0; text-decoration: none; cursor: pointer; vertical-align: middle; text-shadow: none; }

.kboard-ocean-gallery-poweredby { float: left; padding-bottom: 15px; width: 100%; font-size: 12px; }
.kboard-ocean-gallery-poweredby a { color: gray; }

#kboard-ocean-gallery-list { margin: 0 auto; width: 99%; }
#kboard-ocean-gallery-list .kboard-header { float: left; margin-top: 0; width: 100%; }
#kboard-ocean-gallery-list .kboard-category { float: left; padding-bottom: 5px; width: 100%; text-align: left; }
#kboard-ocean-gallery-list .kboard-category .kboard-category-list { clear: both; float: left; margin: 5px 0; padding: 0; width: 100%; list-style: none; background-color: #f8f8f8; border: 1px solid #e8eaec; border-left: 0; border-right: 0; line-height: 40px; }
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li { float: left; margin: 0; padding: 0 0 0 5px; color: #747474; font-size: 14px; }
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li:first-child { padding-left: 20px; }
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li a { color: #747474; text-decoration: none; }
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li.kboard-category-selected a { color: #1a80b6; font-weight: bold; }
#kboard-ocean-gallery-list .kboard-search { float: right; padding-bottom: 5px; width: 100%; text-align: center; }
#kboard-ocean-gallery-list .kboard-search select { display: inline-block; margin: 0; padding: 5px 2px; width: 80px; height: auto; font-size: 12px; color: #666666; border-radius: 0; border: 1px solid #e8eaec; vertical-align: middle; box-shadow: none; }
#kboard-ocean-gallery-list .kboard-search input { display: inline-block; margin: 0; padding: 6px 2px; width: 150px; height: auto; font-size: 12px; color: #666666; border-radius: 0; border: 1px solid #e8eaec; line-height: 12px; vertical-align: middle; box-shadow: none; }
#kboard-ocean-gallery-list .kboard-list { float: left; width: 100%; }
#kboard-ocean-gallery-list .kboard-list img { display: inline; margin: 0; width: 220px; height: 155px; vertical-align: middle; border-radius: 3px; box-shadow: 0 1px 2px RGBA(0, 0, 0, 0.2); }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-item { float: left; padding-right: 37px; width: 220px; box-sizing: content-box; }
#kboard-ocean-gallery-list .kboard-list .kboard-no-image { line-height: 155px; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail { position: relative; float: left; width: 220px; text-align: center; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail .kboard-gallery-foreground { display: none; position: absolute; left: 0; top: 0; line-height: 0; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail .kboard-gallery-username { display: none; position: absolute; left: 0; top: 60%; width: 100%; text-align: center; font-size: 12px; color: white; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail .kboard-gallery-username a { text-decoration: none; color: white; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail:hover .kboard-gallery-foreground { display: block; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail:hover .kboard-gallery-username { display: block; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-title { float: left; padding: 16px 0 50px 0; width: 100%; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-title a { color: #373737; text-decoration: none; font-weight: bold; }
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-title a:hover { color: #1a80b6; }
#kboard-ocean-gallery-list .kboard-pagination { float: left; padding: 15px 0; width: 100%; }
#kboard-ocean-gallery-list .kboard-pagination .kboard-pagination-pages { float: left; margin: 0; padding: 0 0 1px 0; width: 100%; list-style: none; text-align: center; border: 0; }
#kboard-ocean-gallery-list .kboard-pagination .kboard-pagination-pages li { display: inline; margin: 0; padding: 0 1px; background: none; border: 0; }
#kboard-ocean-gallery-list .kboard-pagination .kboard-pagination-pages li a { color: black; padding: 5px 10px; border: 1px solid #e3e3e3; text-decoration: none; font-size: 12px; line-height: 27px; background-color: white; }
#kboard-ocean-gallery-list .kboard-pagination .kboard-pagination-pages li.active a { font-weight: bold; border: 1px solid #a9a9a9; color: black; text-decoration: none; }
#kboard-ocean-gallery-list .kboard-control { float: left; padding: 15px 0 1px 0; width: 100%; text-align: right; }

#kboard-ocean-gallery-editor { margin: 0 auto; width: 99%; }
#kboard-ocean-gallery-editor select,
#kboard-ocean-gallery-editor input { width: auto; height: auto; box-shadow: none; }
#kboard-ocean-gallery-editor .kboard-header { float: left; width: 100%; border-top: 1px solid #545861; line-height: 0; }
#kboard-ocean-gallery-editor .kboard-attr-row { float: left; padding: 5px 0; width: 100%; border-bottom: 1px solid #e3e3e3; background-color: white; }
#kboard-ocean-gallery-editor .kboard-attr-title { float: left; border-bottom: 1px solid #e3e3e3; }
#kboard-ocean-gallery-editor .kboard-attr-title input { display: inline-block; padding: 6px 2px; font-size: 12px; width: 50%; color: #666666; border-radius: 0; border: 1px solid #e8eaec; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-name { display: inline; float: left; margin: 0; padding: 0 10px 0 20px; width: 95px; line-height: 30px; color: #545861; font-size: 12px; font-weight: bold; text-align: right; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-name img { display: inline; max-width: 100%; vertical-align: middle; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value { font-size: 12px; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value select { margin: 0; padding: 5px 2px; font-size: 12px; min-width: 130px; color: #666666; border-radius: 0; border: 1px solid #e8eaec; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=text],
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=password] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border-radius: 0; border: 1px solid #e8eaec; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=radio],
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=checkbox] { margin-top: 8px; }
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=file] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border: 0; }
#kboard-ocean-gallery-editor .kboard-content { float: left; padding: 9px 0; width: 100%; border-bottom: 1px solid #e3e3e3; text-align: center; background-color: white; }
#kboard-ocean-gallery-editor .kboard-content textarea { display: inline; margin: 0; padding: 0; width: 98%; height: 250px; border-radius: 0; border: 1px solid #e8eaec; font-size: 12px; }
#kboard-ocean-gallery-editor .kboard-control { float: left; padding: 15px 0; width: 100%; }
#kboard-ocean-gallery-editor .kboard-control .left { position: static; float: left; }
#kboard-ocean-gallery-editor .kboard-control .right { position: static; float: right; width: 50%; text-align: right; }

#kboard-ocean-gallery-document { margin: 0 auto; width: 99%; }
#kboard-ocean-gallery-document .kboard-header { float: left; margin-top: 0; width: 100%; }
#kboard-ocean-gallery-document .kboard-document-wrap { float: left; width: 100%; background-color: white; }
#kboard-ocean-gallery-document .kboard-title { float: left; width: 100%; }
#kboard-ocean-gallery-document .kboard-title p { margin: 0; padding: 12px 22px; color: #545861; font-weight: bold; font-size: 20px; font-weight: bold; }
#kboard-ocean-gallery-document .kboard-detail { clear: both; float: left; width: 100%; border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; background-color: #f4f4f4; font-size: 12px; }
#kboard-ocean-gallery-document .kboard-detail .detail-attr { display: inline-block; float: left; margin: 0; padding: 12px 35px 12px 22px; }
#kboard-ocean-gallery-document .kboard-detail .detail-attr .detail-name { float: left; width: 40px; font-weight: bold; color: #545861; text-align: right; }
#kboard-ocean-gallery-document .kboard-detail .detail-attr .detail-value { float: left; padding-left: 20px; color: #545861; }
#kboard-ocean-gallery-document .kboard-detail .detail-attr .detail-value img { vertical-align: middle; }
#kboard-ocean-gallery-document .kboard-content { clear: both; float: left; width: 100%; min-height: 200px; }
#kboard-ocean-gallery-document .kboard-content .content-view { margin: 0; padding: 22px; }
#kboard-ocean-gallery-document .kboard-content .content-view img { max-width: 100%; }
#kboard-ocean-gallery-document .kboard-content .content-view .thumbnail-area { text-align: center; }
#kboard-ocean-gallery-document .kboard-attach { padding: 0 0 5px 22px; font-size: 12px; }
#kboard-ocean-gallery-document .kboard-comments-area { float: left; width: 100%; }
#kboard-ocean-gallery-document .kboard-control { float: left; padding: 15px 0;  width: 100%; }
#kboard-ocean-gallery-document .kboard-control .left { position: static; float: left; }
#kboard-ocean-gallery-document .kboard-control .right { position: static; float: right; text-align: right; }

#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-item { float: left; width: 300px;   height: 300px;padding: 0 12px 12px 0; }
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-thumbnail { float: left; width: 300px; height: 200px; border: 1px solid #e9eaea; }
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-thumbnail:hover { border-color: #1a80b6; }
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-thumbnail .kboard-no-image a { display: block; width: 111px; line-height: 66px; text-align: center; color: black; text-decoration: none; }
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-title { float: left; width: 300px; padding: 30px 0 0 0;  text-align: left; }
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-title a { font-size: 30px; text-decoration: none; color: #555555; }
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-title a:hover { color: #1a80b6; }

@media (max-width: 600px) {
    #kboard-ocean-gallery-editor .kboard-attr-row input[type=text],
    #kboard-ocean-gallery-editor .kboard-attr-row input[type=file],
    #kboard-ocean-gallery-editor .kboard-attr-row input[type=password] { width: 50%; }
    #kboard-ocean-gallery-document .kboard-detail .detail-attr { clear: both; }
}

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기