html - Bootstrap height and width attribute does not work properly -


i designed 3 bootstrap cards includes image , description below it. want show them similar in size added img width , height attribute image. due bug height , width properties not work properly. 3 images shown in 3 different sizes. have produced code below.

can figerout bug here?

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous">  <div class="row">      <div class="col-lg-4 col-md-6">        <!--card-->      <div class="card">          <!--card image-->        <div class="view overlay hm-white-slight">          <img src="img/sigiriya.jpg" class="img-fluid" height="500px" width="500px" alt="">          <a>            <div class="mask"></div>          </a>        </div>          <!--card content-->        <div class="card-block">          <!--title-->          <h4 class="card-title">card waves effect</h4>          <!--text-->          <p class="card-text">some quick example text build on card title , make bulk of card's content.</p>          <a href="#!" class="btn btn-indigo">button</a>        </div>        </div>      <!--/.card-->      </div>      <div class="col-lg-4 col-md-6">        <!--card-->      <div class="card">          <!--card image-->        <!--card image-->        <div class="view overlay hm-white-slight">          <img class="img-fluid" src="img/nuwara_eliya.jpg" alt="card image cap" height="500px" width="500px">          <a>            <div class="mask"></div>          </a>        </div>            <!--card content-->        <div class="card-block">          <!--title-->          <h4 class="card-title">classic card</h4>          <!--text-->          <p class="card-text">some quick example text build on card title , make bulk of card's content.</p>          <a href="#!" class="btn btn-primary">button</a>        </div>        </div>      <!--/.card-->      </div>      <div class="col-lg-4 col-md-6">        <!--card-->      <div class="card">          <!--card image-->        <div class="view overlay hm-white-slight">          <img src="img/ella.jpg" class="img-fluid" height="500px" width="500px" alt="">          <a>            <div class="mask"></div>          </a>        </div>          <!--card content-->        <div class="card-block">          <!--title-->          <h4 class="card-title">card waves effect</h4>          <!--text-->          <p class="card-text">some quick example text build on card title , make bulk of card's content.</p>          <a href="#!" class="btn btn-pink">button</a>        </div>        </div>      <!--/.card-->      </div>

you can use code. it's working fine.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous">  <div class="row">    <div class="col-lg-4 col-md-6">      <!--card-->     <div class="card">        <!--card image-->       <div class="view overlay hm-white-slight">         <img src="b.png" height="500" width="500" alt="">         <a>           <div class="mask"></div>         </a>       </div>        <!--card content-->       <div class="card-block">         <!--title-->         <h4 class="card-title">card waves effect</h4>         <!--text-->         <p class="card-text">some quick example text build on card title , make bulk of card's content.</p>         <a href="#!" class="btn btn-indigo">button</a>       </div>      </div>     <!--/.card-->    </div>    <div class="col-lg-4 col-md-6">      <!--card-->     <div class="card">        <!--card image-->       <!--card image-->       <div class="view overlay hm-white-slight">         <img src="profile.jpg" alt="card image cap" height="500" width="500">         <a>           <div class="mask"></div>         </a>       </div>         <!--card content-->       <div class="card-block">         <!--title-->         <h4 class="card-title">classic card</h4>         <!--text-->         <p class="card-text">some quick example text build on card title , make bulk of card's content.</p>         <a href="#!" class="btn btn-primary">button</a>       </div>      </div>     <!--/.card-->    </div>    <div class="col-lg-4 col-md-6">      <!--card-->     <div class="card">        <!--card image-->       <div class="view overlay hm-white-slight">         <img src="profile.jpg" height="500" width="500" alt="">         <a>           <div class="mask"></div>         </a>       </div>        <!--card content-->       <div class="card-block">         <!--title-->         <h4 class="card-title">card waves effect</h4>         <!--text-->         <p class="card-text">some quick example text build on card title , make bulk of card's content.</p>         <a href="#!" class="btn btn-pink">button</a>       </div>      </div>     <!--/.card-->    </div>    

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -