html - Aligning image with respective tables using materializecss -


find full code here: http://codepen.io/anon/pen/nxerrr

i trying display different tables , respective images. below screenshot actual requirement. this requirement. one and how far have progressed. two
great if me in achieving this. in advance.

note: using materializecss , nice achieve using same.

   <div class="row">      <div class="featuresanimate">        <div id="features" class="section scrollspy">          <div class="container">            <h2 style="text-decoration:underline;text-align:center;font-  weight:bold;font-family:comic sans ms">features</h2><br><br>              <div class="features">                <table style="width:100%">                  <tr>                    <img src="images/d.png" height="100" width="100">                    <th >one</th>                    <img src="images/a.png" height="100" width="100">                    <th >two</th>                  </tr>                   <tr>                    <td >profile</td>                    <td >profile</td>                  </tr>                   <tr>                    <td>profile</td>                    <td>profile</td>                  </tr>                   <tr>                    <td>profile</td>                    <td>profile</td>                  </tr>                   <tr>                   <td>profile</td>                   <td>profile</td>                  </tr>                  </table>                        </div>             </div>         </div>       </div>     </div> 

it looks you're using materialize css framework. ditch tables-for-layout approach , use grid system provided framework. see working codepen demo here.

h3 {    margin-top: 0;    padding-left: 10px;    color: #fff;    background-color: #0d47a1;  }    img {    float: left;    margin-right: 15px;  }    .feature-set {    float: right;    width: calc(100% - 115px);  }    ul {    padding-left: 10px;  }
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css" rel="stylesheet"/>  <div class="row">    <div class="featuresanimate">      <div id="features" class="section scrollspy">        <div class="container">          <h2 style="text-decoration:underline;text-align:center;font-weight:bold;font-family:comic sans ms">features</h2>          <div class="features">            <div class="col s6">              <img src="http://placehold.it/100x100" height="100" width="100">              <div class="feature-set">                <h3>one</h3>              <ul>                <li>profile</li>                <li>profile</li>                <li>profile</li>                <li>profile</li>              </ul>              </div>                        </div>            <div class="col s6">              <img src="http://placehold.it/100x100" height="100" width="100">              <div class="feature-set">                <h3>two</h3>              <ul>                <li>profile</li>                <li>profile</li>                <li>profile</li>                <li>profile</li>              </ul>              </div>            </div>          </div>        </div>      </div>    </div>  </div>


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -