html - How to make separate rows with Materialize CSS cards in div columns? -


i trying make vertically scrollable div has 3 columns contain 1 card (from materialize css, see link here: http://materializecss.com/cards.html in each row. there should multilple rows, around ten or twelve now, ten or twelve cards per column. when tried 2 or 3 cards in first , second column, cards overlay on top of each other , don't make own rows.

#heading{      font-family: 'cabin', sans-serif;  }    .card {      height:100px;  }
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css" rel="stylesheet"/>  <main>      <div class = "featureditems" style = "overflow-y: scroll">          <div style="float: left; width: 33%;">              <div height = "100px" class="card row">                  <div class="card-image waves-effect waves-block waves-light">                      <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                  </div>                  <div class="card-content">                      <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                      <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                  </div>                  <div class="card-reveal">                      <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                      <p>here more information product revealed once clicked on.</p>                  </div>              </div>              <div height = "100px" class="card row">                  <div class="card-image waves-effect waves-block waves-light">                      <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                  </div>                  <div class="card-content">                      <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                      <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                  </div>                  <div class="card-reveal">                      <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                      <p>here more information product revealed once clicked on.</p>                  </div>              </div>              <div height = "100px" class="card row">                  <div class="card-image waves-effect waves-block waves-light">                      <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                  </div>                  <div class="card-content">                      <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                      <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                  </div>                  <div class="card-reveal">                      <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                      <p>here more information product revealed once clicked on.</p>                  </div>              </div>          </div>            <div style="float: left; width: 33%;">              <div class="card">                  <div class="card-image waves-effect waves-block waves-light">                      <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                  </div>                  <div class="card-content">                      <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                      <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                  </div>                  <div class="card-reveal">                      <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                      <p>here more information product revealed once clicked on.</p>                  </div>              </div>              <div height = "100px" class="card">                  <div class="card-image waves-effect waves-block waves-light">                      <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                  </div>                  <div class="card-content">                      <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                      <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                  </div>                  <div class="card-reveal">                      <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                      <p>here more information product revealed once clicked on.</p>                  </div>              </div>          </div>          <div style="float: left; width: 33%;">              <div class="card">                  <div class="card-image waves-effect waves-block waves-light">                      <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                  </div>                  <div class="card-content">                      <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                      <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                  </div>                  <div class="card-reveal">                      <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                      <p>here more information product revealed once clicked on.</p>                  </div>              </div>          </div>      </div>  </main>

does know how fix this?

#heading{      font-family: 'cabin', sans-serif;  }    .card {   /*add inline-display*/   display: inline-block;  }
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css" rel="stylesheet"/>  <main>              <div class = "featureditems" style = "overflow-y: scroll">                    <div style="float: left; width: 33%;">                        <div height = "100px" class="card row">                          <div class="card-image waves-effect waves-block waves-light">                            <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                          </div>                          <div class="card-content">                            <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                            <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                          </div>                          <div class="card-reveal">                            <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                            <p>here more information product revealed once clicked on.</p>                          </div>                        </div>                         <div height = "100px" class="card row">                          <div class="card-image waves-effect waves-block waves-light">                            <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                          </div>                          <div class="card-content">                            <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                            <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                          </div>                          <div class="card-reveal">                            <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                            <p>here more information product revealed once clicked on.</p>                          </div>                        </div>                         <div height = "100px" class="card row">                          <div class="card-image waves-effect waves-block waves-light">                            <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                          </div>                          <div class="card-content">                            <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                            <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                          </div>                          <div class="card-reveal">                            <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                            <p>here more information product revealed once clicked on.</p>                          </div>                        </div>                    </div>                      <div style="float: left; width: 33%;">                         <div class="card">                          <div class="card-image waves-effect waves-block waves-light">                            <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                          </div>                          <div class="card-content">                            <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                            <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                          </div>                          <div class="card-reveal">                            <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                            <p>here more information product revealed once clicked on.</p>                          </div>                        </div>                                               <div height = "100px" class="card">                          <div class="card-image waves-effect waves-block waves-light">                            <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                          </div>                          <div class="card-content">                            <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                            <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                          </div>                          <div class="card-reveal">                            <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                            <p>here more information product revealed once clicked on.</p>                          </div>                        </div>                    </div>                    <div style="float: left; width: 33%;">                         <div class="card">                          <div class="card-image waves-effect waves-block waves-light">                            <img class="activator" src="https://s-media-cache-ak0.pinimg.com/originals/7f/8d/2c/7f8d2cc47b1851081ec19b3da1d35699.jpg">                          </div>                          <div class="card-content">                            <span class="card-title activator grey-text text-darken-4">card title<i class="material-icons right">more_vert</i></span>                            <p><a href="https://www.pinterest.com/pin/554083560386026921/">visit site</a></p>                          </div>                          <div class="card-reveal">                            <span class="card-title grey-text text-darken-4">card title<i class="material-icons right">close</i></span>                            <p>here more information product revealed once clicked on.</p>                          </div>                        </div>                    </div>              </div>          </main>

how now


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -