안녕하세요. 답변 주신 내용대로 최근글 목록을 메인페이지에서 삽입하였습니다.
정말 감사합니다.
그런데 제가 스킨을 수정을 할 때 무슨 문제가 있었는지.
제목부분은 게시판 테이블에 잘 맞게 나오는데요 작성일 부분에서 날짜가 테이블안에 가운데에 나오지 않고
테이블 바깥으로 넘어가면서 나와서요. 이부분을 어떻게 수정해야하는지 답변주시면 정말 감사하겠습니다.
혹시 소스에 문제가 있는지 봐주실 수 있는지요. 부탁드립니다.
<link rel="stylesheet" href="<?=$skin_path?>/style.css"> <div id="kboard-latest"> <table> <tbody> <?php while($content = $list->hasNext()):?> <tr> <td class="kboard-latest-title"><div class="cut_strings"><a href="<?=$url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>"><?=$content->title?></a></div></td> <td class="kboard-latest-date"><center><?=date("Y.m.d", strtotime($content->date))?></center></td> </tr> <?php endwhile;?> </tbody> </table> </div>
html 만으로는 알 수 없고요
css도 함께 올려주시겠어요?
이 게시물은 html/css 카테고리로 옮길께요
네. 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-button-small, .kboard-button-small:link, .kboard-button-small:visited { display: inline-block; margin: 0; padding: 0 10px; height: 28px; line-height: 28px; font-size: 12px; font-weight: normal; color: white !important; background-image: none !important; background-color: #545861 !important; border: none; border-radius: 3px; text-decoration: none; cursor: pointer; vertical-align: middle; } .kboard-button-small:hover, .kboard-button-small:focus, .kboard-button-small:active { display: inline-block; margin: 0; padding: 0 10px; height: 28px; line-height: 28px; font-size: 12px; font-weight: normal; color: white !important; background-image: none !important; background-color: #323239 !important; border: none; border-radius: 3px; text-decoration: none; cursor: pointer; vertical-align: middle; } .kboard-poweredby { float: left; font-size: 12px; } .kboard-poweredby a { color: gray; } #kboard-list { margin: 0 auto; width: 99%; } #kboard-list .kboard-header { float: left; margin-top: 0; width: 100%; } #kboard-list .kboard-category { float: left; padding-bottom: 5px; width: 50%; text-align: left; } #kboard-list .kboard-category select { display: inline-block; margin: 0; padding: 5px 2px; font-size: 12px; width: 125px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; } #kboard-list .kboard-search { float: right; padding-bottom: 5px; width: 50%; text-align: right; } #kboard-list .kboard-search select { display: inline-block; margin: 0; padding: 5px 2px; width: 100px; height: auto; font-size: 12px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; vertical-align: middle; } #kboard-list .kboard-search input { display: inline-block; margin: 0; padding: 6px 2px; width: 125px; height: auto; font-size: 12px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; line-height: 12px; vertical-align: middle; } #kboard-list .kboard-list { float: left; width: 100%; background-color: white; } #kboard-list .kboard-list table { table-layout:fixed; width: 100%; border-top: 2px solid #545861; font-size: 12px; border-collapse: collapse; } #kboard-list .kboard-list table a { color: black; text-decoration: none; } #kboard-list .kboard-list table tr { border: 0; } #kboard-list .kboard-list table td { padding: 10px 0; text-align: center; vertical-align: middle; } #kboard-list .kboard-list table td.kboard-list-uid { width: 72px; } #kboard-list .kboard-list table td.kboard-list-title { width: auto; } #kboard-list .kboard-list table td.kboard-list-title img { display: inline; vertical-align: middle; } #kboard-list .kboard-list table td.kboard-list-user { width: 80px; } #kboard-list .kboard-list table td.kboard-list-date { width: 75px; } #kboard-list .kboard-list table td.kboard-list-view { width: 55px; } #kboard-list .kboard-list thead tr td { font-weight: bold; color: #545861; border: 0; border-bottom: 1px solid #545861; } #kboard-list .kboard-list tbody tr td { word-break: break-all; border: 0; border-bottom: 1px solid #e3e3e3; } #kboard-list .kboard-list tbody tr:hover { background-color: #f7f7f7; } #kboard-list .kboard-list tbody tr.kboard-list-notice { background-color: #f4f4f4; } #kboard-list .kboard-list tbody tr.kboard-list-notice td.kboard-list-uid { font-weight: bold; color: #515151; } #kboard-list .kboard-list tbody td.kboard-list-title { text-align: left; } #kboard-list .kboard-list tbody td.kboard-list-title img { display: inline; vertical-align: text-bottom; } #kboard-list .kboard-pagination { float: left; padding: 15px 0; width: 100%; } #kboard-list .kboard-pagination .kboard-pagination-pages { float: left; margin: 0; padding: 0 0 1px 0; width: 100%; list-style: none; text-align: center; } #kboard-list .kboard-pagination .kboard-pagination-pages li { display: inline; margin: 0; padding: 0 1px; background: none; } #kboard-list .kboard-pagination .kboard-pagination-pages li a { color: black; padding: 5px 10px; border: 1px solid #e0e0e0; text-decoration: none; font-size: 12px; line-height: 27px; } #kboard-list .kboard-pagination .kboard-pagination-pages li.active a { font-weight: bold; border: 1px solid #a9a9a9; color: black; text-decoration: none; } #kboard-list .kboard-control { float: left; padding: 15px 0 1px 0; width: 100%; text-align: right; } #kboard-editor { margin: 0 auto; width: 99%; } #kboard-editor select, #kboard-editor input { width: auto; height: auto; } #kboard-editor .kboard-header { float: left; width: 100%; border-top: 2px solid #545861; line-height: 0; } #kboard-editor .kboard-attr-row { float: left; padding: 5px 0; width: 100%; border-bottom: 1px solid #e3e3e3; } #kboard-editor .kboard-attr-title { float: left; border-bottom: 1px solid #545861; } #kboard-editor .kboard-attr-title input { display: inline-block; padding: 6px 2px; font-size: 12px; width: 50%; color: #666666; border-radius: 3px; border: 1px solid #cccccc; } #kboard-editor .kboard-attr-row .attr-name { display: inline; float: left; margin: 0; padding: 0 10px 0 20px; width: 90px; line-height: 30px; color: #545861; font-size: 12px; font-weight: bold; text-align: right; } #kboard-editor .kboard-attr-row .attr-name img { display: inline; max-width: 100%; vertical-align: middle; } #kboard-editor .kboard-attr-row .attr-value { font-size: 12px; } #kboard-editor .kboard-attr-row .attr-value select { margin: 0; padding: 5px 2px; font-size: 12px; min-width: 130px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; } #kboard-editor .kboard-attr-row .attr-value input[type=text], #kboard-editor .kboard-attr-row .attr-value input[type=password] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; } #kboard-editor .kboard-attr-row .attr-value input[type=radio], #kboard-editor .kboard-attr-row .attr-value input[type=checkbox] { margin-top: 8px; } #kboard-editor .kboard-attr-row .attr-value input[type=file] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border: 0; } #kboard-editor .kboard-content { float: left; padding: 9px 0; width: 100%; border-bottom: 1px solid #e3e3e3; text-align: center; } #kboard-editor .kboard-content textarea { display: inline; margin: 0; padding: 0; width: 98%; height: 250px; border-radius: 3px; border: 1px solid #cccccc; font-size: 12px; } #kboard-editor .kboard-control { float: left; padding: 15px 0; width: 100%; } #kboard-editor .kboard-control .left { float: left; } #kboard-editor .kboard-control .right { float: right; width: 50%; text-align: right; } #kboard-document { margin: 0 auto; width: 99%; } #kboard-document .kboard-header { float: left; margin-top: 0; width: 100%; } #kboard-document .kboard-document-wrap { float: left; width: 100%; background-color: white; } #kboard-document .kboard-title { float: left; width: 100%; border-top: 2px solid #545861; } #kboard-document .kboard-title p { margin: 0; padding: 12px 22px; color: #545861; font-weight: bold; font-size: 12px; } #kboard-document .kboard-detail { clear: both; float: left; width: 100%; border-top: 1px solid #545861; border-bottom: 1px solid #e3e3e3; background-color: #f4f4f4; font-size: 12px; } #kboard-document .kboard-detail .detail-attr { display: inline-block; float: left; margin: 0; padding: 12px 35px 12px 22px; } #kboard-document .kboard-detail .detail-attr .detail-name { float: left; width: 40px; font-weight: bold; color: #545861; text-align: right; } #kboard-document .kboard-detail .detail-attr .detail-value { float: left; padding-left: 20px; color: #545861; } #kboard-document .kboard-detail .detail-attr .detail-value img { vertical-align: middle; } #kboard-document .kboard-content { clear: both; float: left; width: 100%; min-height: 200px; } #kboard-document .kboard-content .content-view { margin: 0; padding: 22px; } #kboard-document .kboard-content .content-view img { max-width: 100%; } #kboard-document .kboard-content .content-view .thumbnail-area { text-align: center; } #kboard-document .kboard-attach { padding: 0 0 5px 22px; font-size: 12px; } #kboard-document .kboard-comments-area { float: left; width: 100%; } #kboard-document .kboard-control { float: left; padding: 15px 0; width: 100%; } #kboard-document .kboard-control .left { float: left; } #kboard-document .kboard-control .right { float: right; text-align: right; } #kboard-latest table { width: 100%; table-layout: fixed; } #kboard-latest table tr { padding: 10px 0; border-bottom: 1px solid #e3e3e3; } #kboard-latest table th { text-align: center; } #kboard-latest table .kboard-latest-title { padding-left: 10px; } #kboard-latest table .kboard-latest-date { width: 75px; text-align: center; } @media (max-width: 600px) { #kboard-list .kboard-category { width: 100%; } #kboard-list .kboard-category select { width: auto;} #kboard-list .kboard-search { clear: both; float: left; width: 100%; } #kboard-list .kboard-search select { width: 80px; } #kboard-list .kboard-search input { width: 80px; } #kboard-list .kboard-list table td.kboard-list-uid { width: 50px; } #kboard-list .kboard-list table td.kboard-list-date { width: 65px; } #kboard-list .kboard-list td.kboard-list-user, #kboard-list .kboard-list td.kboard-list-view { display: none; } #kboard-editor .kboard-attr-row input[type=text], #kboard-editor .kboard-attr-row input[type=file], #kboard-editor .kboard-attr-row input[type=password] { width: 50%; } #kboard-document .kboard-detail .detail-attr { clear: both; } }
음.... 수정하신게 없으면
테마쪽 CSS 문제인듯 합니다. 또는 공간이 너무 작을수도 있고요
확인 가능한 url 알려주시겠어요?
스샷이라도.. 있어야 겠는데요
아 감사합니다. 제가 이문제는 해결했어요.
컴퓨터마다 약간씩 다른지 다른컴퓨터로 보니까 맞게 나오더라구요 감사합니다!