테스트 사이트 - 개발 중인 베타 버전입니다

갤러리 게시판 썸네일 정렬 문의요~ 채택완료

kimna17 8년 전 조회 2,481


 갤러리 게시판을 크기는 원본 사이즈 줄여져서 정렬되게 많들고 있는데요.. 

  float: left 를 주니깐 결국 여백이 생기네여.. 이거를 어떻게해야지 사진들이 여백 없이 따닥따닥

 붙을까요..? 

부탁드려요 ㅠㅠㅠㅠ

===========

list.skin.php 이구요

 

  •            

               

               

               

               

                   

                    if ($wr_id == $list[$i]['wr_id'])

                        echo "열람중";

                    else

                        echo $list[$i]['num'];

                     ?>

               

               

                     

    •                     

                         

                          $image_org = '';

                          if ($list[$i]['is_notice']) { // 공지사항

                              $img_content = '공지';    

                          } else {

                              $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_']);

                              $image_org = $thumb['ori'];

                              if($thumb['src']) {

                                  $img_content = ''.$thumb['alt'].'';

                              } else {

                                  $img_content = 'no image';

                              }

                          }

                          ?>

                         

                     

    •                

                     

                     

    • 추천
    •                

    • 비추천
    •            

           

  • =====================================================

    css 입니다.

    #bo_gall h2 {margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}

    #bo_gall #gall_ul {margin:10px 0 0;padding:0;list-style:none;zoom:1;      position: relative; }

    #bo_gall #gall_ul:after {display:block;visibility:hidden;clear:both;content:""}

    #bo_gall .gall_li {width:48%; margin:0% 1% 1% 1%; float:left;  }

     

     

    #bo_gall .gall_con {margin:0;padding:0;list-style:none; }

    #bo_gall .gall_con li {margin:0 0 4px; width:100%; }

    #bo_gall .gall_con .gall_subject {display:inline-block;width:50px}

    #bo_gall .gall_now .gall_text_href a {color:#ff3061}

    #bo_gall .gall_href a:link, #bo_gall .gall_href a:focus, #bo_gall .gall_href a:hover {text-decoration:none}

    #bo_gall .gall_href strong, #bo_gall .gall_href span {display:inline-block;background:#f7f7f7;text-align:center;line-height:10em}

    #bo_gall .gall_text_href {margin:10px 0 !important}

    #bo_gall .gall_text_href a {font-weight:bold}

    #bo_gall .gall_text_href span {display:inline !important}

    #bo_gall .gall_text_href img {margin:0 0 0 4px}

    댓글을 작성하려면 로그인이 필요합니다.

    답변 1개

    채택된 답변
    +20 포인트

    https://sir.kr/g5_skin/13667?page=5">https://sir.kr/g5_skin/13667?page=5 

    이걸 참고하시면 되지안을까요?

    로그인 후 평가할 수 있습니다

    답변에 대한 댓글 1개

    k
    kimna17
    8년 전
    감사합니다!
    다른걸 참고해서 하였지만 많은 도움이 되었습니다!

    댓글을 작성하려면 로그인이 필요합니다.

    답변을 작성하려면 로그인이 필요합니다.

    로그인