html - bootstrap embed-responsive does not work with css column count? -


bootstrap embed-responsive not work css column-count. example:

/** divide target element <number> columns */  .columns {      -webkit-column-count: 4;      -webkit-column-gap: 10px;      /*-webkit-column-fill: auto;*/        -moz-column-count: 4;      -moz-column-gap: 10px;      /*-moz-column-fill: auto;*/        column-count: 4;      column-gap: 15px;      /*column-fill: auto;*/  }    .video-box {     border: 1px solid red;  }
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"/>  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>    <div class="container">      <div class="columns">          <div class="video-box">              <!-- 16:9 aspect ratio -->              <div class="embed-responsive embed-responsive-16by9">                  <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/qyv5r_e5htm" frameborder="0" allowfullscreen></iframe>              </div>          </div>            <div class="video-box">              <!-- 16:9 aspect ratio -->              <div class="embed-responsive embed-responsive-16by9">                  <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/feq99sugdsw" frameborder="0" allowfullscreen></iframe>              </div>          </div>            <div class="video-box">              <!-- 16:9 aspect ratio -->              <div class="embed-responsive embed-responsive-16by9">                  <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/r_kewddtrvc" frameborder="0" allowfullscreen></iframe>              </div>          </div>      </div>  </div>

result:

enter image description here

the second , third videos being not displayed!

any ideas why , how can around it?

note:

it seems bug on chrome. firefox fine.

finally use jquery plugin http://masonry.desandro.com/ fix bug. forget column-count!


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -