jquery - How to remove top / bottom margin from isotope masonry -


i using isotope masonry gallery finding hard remove top / bottom gaps between rows (see image)

the same gap below images including tall ones next row pushed down more

how can go this?

the code i'm using based on following: http://simbyone.com/animated-masonry-gallery-with-filters/

as mentioned, using code directly url above including javascript , css. html images created using php outputs follows:

    <div id="gallery-content">     <div id="gallery-content-center">                         <div class='wrapper suggestion film later' id='3'>                             <span class='relevance'>                                 <span class='badge'>87%</span>                              </span>                                 <img src='cabinet/item/img/3.jpg' class='all film later' alt='film 1'/>                             <span class='text'><i class='fa fa-check-circle-o btn-icon up'></i> <i class='fa fa-times-circle-o btn-icon down'></i> <i class='fa fa-heart-o btn-icon fav'></i><br>film 1 later</span>                         </div></div></div> 

i using hover text on images:

        .wrapper img {         filter: grayscale(100%);         -webkit-filter: grayscale(100%);  /* webkit browsers */         filter: gray;  /* ie 6 - 9 */         -webkit-transition: .6s ease;  /* transition webkit browsers */     }      .wrapper img:hover {         filter: grayscale(0%);         -webkit-filter: grayscale(0%);         filter: none;     }      .wrapper .text {         position:relative;         bottom:65px;         left:10px;         width: 150px;         overflow: visible;         visibility:hidden;         color: #fff;         font-size: 20px;     }      .wrapper:hover .text {         visibility:visible;     }      .wrapper .relevance {         position:relative;         top:30px;         left:250px;         visibility:hidden;         color: #a9a9a9;         z-index: 99999;     }      .wrapper:hover .relevance {         visibility:visible;     }      .wrapper .relevance .badge {         font-size: 16px;         background-color: #333;     } 

edit: seems if apply height .wrapper deals height of image vary can't seem wrap tightly image within it. suggestions how can height: auto leaves me have already

i have found work around though i'm not 100% if way go added margin-bottom: -25% images , appears have done trick. may not fit situations time tell

#gallery-content-center img {   width: 100%;   height: auto;   margin-bottom: -25%; } 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

android - Go back to previous fragment -