<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[최신글 목록에 내용 보이기]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/5127</link>
		<description><![CDATA[<p><img alt="" src="http://www.xeoskin.co.kr/wp/wp-content/uploads/2015/03/001.jpg" style="height:346px;width:325px;" /></p>

<p>현재는 제목과 내용이 겹처있습니다 </p>

<p>제목 밑으로 내용이 나오고 </p>

<p>내용의 길이를 제한하고싶습니다 </p>

<p>감사합니다</p>

<p> </p>

<p> </p>

<p> </p>

<p>최신글 코드입니다</p>

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

<p> </p>

<p> </p>

<p>최신글 css입니다</p>

<p> </p>

<p> </p>

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

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

<p>.kboard-ocean-gallery-button-small,<br />
.kboard-ocean-gallery-button-small:link,<br />
.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; }<br />
.kboard-ocean-gallery-button-small:hover,<br />
.kboard-ocean-gallery-button-small:focus,<br />
.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; }</p>

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

<p>#kboard-ocean-gallery-list { margin: 0 auto; width: 99%; }<br />
#kboard-ocean-gallery-list .kboard-header { float: left; margin-top: 0; width: 100%; }<br />
#kboard-ocean-gallery-list .kboard-category { float: left; padding-bottom: 5px; width: 100%; text-align: left; }<br />
#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; }<br />
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li { float: left; margin: 0; padding: 0 0 0 5px; color: #747474; font-size: 14px; }<br />
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li:first-child { padding-left: 20px; }<br />
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li a { color: #747474; text-decoration: none; }<br />
#kboard-ocean-gallery-list .kboard-category .kboard-category-list li.kboard-category-selected a { color: #1a80b6; font-weight: bold; }<br />
#kboard-ocean-gallery-list .kboard-search { float: right; padding-bottom: 5px; width: 100%; text-align: center; }<br />
#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; }<br />
#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; }<br />
#kboard-ocean-gallery-list .kboard-list { float: left; width: 100%; }<br />
#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); }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-item { float: left; padding-right: 37px; width: 220px; box-sizing: content-box; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-no-image { line-height: 155px; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail { position: relative; float: left; width: 220px; text-align: center; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail .kboard-gallery-foreground { display: none; position: absolute; left: 0; top: 0; line-height: 0; }<br />
#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; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail .kboard-gallery-username a { text-decoration: none; color: white; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail:hover .kboard-gallery-foreground { display: block; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-thumbnail:hover .kboard-gallery-username { display: block; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-title { float: left; padding: 16px 0 50px 0; width: 100%; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-title a { color: #373737; text-decoration: none; font-weight: bold; }<br />
#kboard-ocean-gallery-list .kboard-list .kboard-gallery-title a:hover { color: #1a80b6; }<br />
#kboard-ocean-gallery-list .kboard-pagination { float: left; padding: 15px 0; width: 100%; }<br />
#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; }<br />
#kboard-ocean-gallery-list .kboard-pagination .kboard-pagination-pages li { display: inline; margin: 0; padding: 0 1px; background: none; border: 0; }<br />
#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; }<br />
#kboard-ocean-gallery-list .kboard-pagination .kboard-pagination-pages li.active a { font-weight: bold; border: 1px solid #a9a9a9; color: black; text-decoration: none; }<br />
#kboard-ocean-gallery-list .kboard-control { float: left; padding: 15px 0 1px 0; width: 100%; text-align: right; }</p>

<p>#kboard-ocean-gallery-editor { margin: 0 auto; width: 99%; }<br />
#kboard-ocean-gallery-editor select,<br />
#kboard-ocean-gallery-editor input { width: auto; height: auto; box-shadow: none; }<br />
#kboard-ocean-gallery-editor .kboard-header { float: left; width: 100%; border-top: 1px solid #545861; line-height: 0; }<br />
#kboard-ocean-gallery-editor .kboard-attr-row { float: left; padding: 5px 0; width: 100%; border-bottom: 1px solid #e3e3e3; background-color: white; }<br />
#kboard-ocean-gallery-editor .kboard-attr-title { float: left; border-bottom: 1px solid #e3e3e3; }<br />
#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; }<br />
#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; }<br />
#kboard-ocean-gallery-editor .kboard-attr-row .attr-name img { display: inline; max-width: 100%; vertical-align: middle; }<br />
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value { font-size: 12px; }<br />
#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; }<br />
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=text],<br />
#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; }<br />
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=radio],<br />
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=checkbox] { margin-top: 8px; }<br />
#kboard-ocean-gallery-editor .kboard-attr-row .attr-value input[type=file] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border: 0; }<br />
#kboard-ocean-gallery-editor .kboard-content { float: left; padding: 9px 0; width: 100%; border-bottom: 1px solid #e3e3e3; text-align: center; background-color: white; }<br />
#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; }<br />
#kboard-ocean-gallery-editor .kboard-control { float: left; padding: 15px 0; width: 100%; }<br />
#kboard-ocean-gallery-editor .kboard-control .left { position: static; float: left; }<br />
#kboard-ocean-gallery-editor .kboard-control .right { position: static; float: right; width: 50%; text-align: right; }</p>

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

<p>#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-item { float: left; width: 300px;   height: 300px;padding: 0 12px 12px 0; }<br />
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-thumbnail { float: left; width: 300px; height: 200px; border: 1px solid #e9eaea; }<br />
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-thumbnail:hover { border-color: #1a80b6; }<br />
#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; }<br />
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-title { float: left; width: 300px; padding: 30px 0 0 0;  text-align: left; }<br />
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-title a { font-size: 30px; text-decoration: none; color: #555555; }<br />
#kboard-ocean-gallery-latest .kboard-ocean-gallery-latest-title a:hover { color: #1a80b6; }</p>

<p>@media (max-width: 600px) {<br />
    #kboard-ocean-gallery-editor .kboard-attr-row input[type=text],<br />
    #kboard-ocean-gallery-editor .kboard-attr-row input[type=file],<br />
    #kboard-ocean-gallery-editor .kboard-attr-row input[type=password] { width: 50%; }<br />
    #kboard-ocean-gallery-document .kboard-detail .detail-attr { clear: both; }<br />
}</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[글자 길이 제한하는건 php의 mb_strimwidth() 함수를 사용하시면 좋습니다.

http://php.net/manual/en/...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/5133</link>
			<description><![CDATA[<p>글자 길이 제한하는건 php의 mb_strimwidth() 함수를 사용하시면 좋습니다.</p>

<p><a href="http://php.net/manual/en/function.mb-strimwidth.php" target="_blank">http://php.net/manual/en/function.mb-strimwidth.php</a></p>

<p> </p>

<p>html 코드를 보니 &lt;?php echo $content-&gt;content?&gt; 출력이 제목보다 위에 있네요.</p>

<p>제목보다 아래 출력되도록 위치 변경해주세요.</p>

<p>그리고 내용에 대한 css 코드는 아무것도 없는것 같은데 #kboard-ocean-gallery-latest 이쪽 부분에 레이아웃에 맞춰 스타일도 추가해주셔야 할 듯합니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 27 Mar 2015 06:43:10 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>