1. 리스트에서 제목 2줄로 (해당 스킨 style.css 에 제일 아래)
/* 제목을 2줄까지만 보여주고 … 처리 */
#bo_gallery .na-item .na-subject {
/* 1) 줄 바꿈 허용 */
white-space: normal !important;
/* 2) 웹킷 박스 모델로 전환 */
display: -webkit-box !important;
-webkit-box-orient: vertical !important;
/* 3) 최대 2줄 */
-webkit-line-clamp: 2 !important;
/* 4) 넘치는 부분 숨기기 및 … */
overflow: hidden !important;
text-overflow: ellipsis !important;
}
추가하기
2. (등록자·날짜) 제거 (리스트 list.skin.php 에서)
<!-- ↓ 이 부분 전체를 삭제 또는 주석 처리 -->
<div class="clearfix font-weight-normal f-sm">
<div class="float-right ml-2">
<span class="sr-only">등록자</span>
<?php echo na_name_photo($list[$i]['mb_id'], $list[$i]['name']) ?>
</div>
<div class="float-left text-muted">
<i class="fa fa-clock-o" aria-hidden="true"></i>
<span class="sr-only">등록일</span>
<?php echo na_date($list[$i]['wr_datetime'], 'orangered', 'H:i', 'm.d', 'm.d') ?>
</div>
</div>
<!-- ↑ 여기까지 -->
'소프트U웨어 > 홈페이지제작 팁' 카테고리의 다른 글
공지사항 갤러리로 똑같게 이미지로 (0) | 2025.06.22 |
---|---|
갤러리 게시판 리스트에서 관련링크로 새창 열리게 하기 (0) | 2025.06.22 |