html - Bootstrap columns does not align correctly -


i have weird bug in columns can't identify, don't know if fault or bootstrap thingy.

basically, have single <div class="row"> may contains many <div class="col-lg-2 col-md-2 col-sm-3 col-xs-4">. wants achieve col* items fit on screen (100% width) , aligning each other when resizing. works normally, except in jsfiddle.

the problem on rows, 1 div goes completly crazy , not align correctly in row (try resize result in fiddle, see mean).

i'm using bootstrap 3.3.6 , chrome latest version (tried on ff, same weird result...). "clearfix" nothing. have tried packery.js same result.

this answer (bootstrap columns not aligning correctly) have helped me, don't know in advance how many columns have (because depend on screen size) ...

of course, have tried setting min-height each .gallery-item...

any ideas ?

thanks in advance,

update, here missing css appears in code:

div.gallery-item {     margin-bottom: 15px; }  div.gallery-item, div.gallery-item * {     -webkit-transition: 300ms;     -moz-transition: 300ms;     transition: 300ms; }  .gallery-item {     cursor: pointer; }  .gallery-item.active {     background-color: rgba(128,192,255,0.5); } 

second update, following advices, work adding fixed height each gallery-item, that:

.gallery-item {   height: 300px; } 

thanks :)

the problem because not columns inside row equal height. have @ following ensure equal column height.

link here

updated fiddle approach, have @ updated fiddle

added css

.row-eq-height {   display: -webkit-box;   display: -webkit-flex;   display: -ms-flexbox;   display:         flex; } 

added css class gallery-item

row-eq-height gallery-item  

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -