html - Adjusting image sizes and padding in bootstrap -


i using bootstrap , divided row in 4:8, in col-4 displaying paragraph while in col-8 trying display thumbnail carousel of 3 picture in each col, problem facing picture having margins on left , right of carousel, want remove , secondly want display 3 images of 240*158 (actual) size each in carousel. here code

actually want have thing thathere link

html

<div class="col-md-8">         <h1> current projects </h1>    <div class="carousel slide" id="mycarousel" style="background:#ccc">     <div class="carousel-inner">         <div class="item active">                 <ul class="thumbnails">                     <li class="col-md-4">                         <div class="fff">                             <div class="thumbnail">                                 <a href="#"><img src="http://placehold.it/100x20" alt=""></a>                             </div>                             <div class="caption">                                 <h4>praesent commodo</h4>                                 <p>nullam condimentum nibh etiam sem</p>                                 <a class="btn btn-mini" href="#">» read more</a>                             </div>                         </div>                     </li>                     <li class="col-sm-4">                         <div class="fff">                             <div class="thumbnail">                                 <a href="#"><img src="http://placehold.it/100x20" alt=""></a>                             </div>                             <div class="caption">                                 <h4>praesent commodo</h4>                                 <p>nullam condimentum nibh etiam sem</p>                                 <a class="btn btn-mini" href="#">» read more</a>                             </div>                         </div>                     </li>                     <li class="col-sm-4">                         <div class="fff">                             <div class="thumbnail">                                 <a href="#"><img src="http://placehold.it/100x20" alt=""></a>                             </div>                             <div class="caption">                                 <h4>praesent commodo</h4>                                 <p>nullam condimentum nibh etiam sem</p>                                 <a class="btn btn-mini" href="#">» read more</a>                             </div>                         </div>                     </li>                 </ul>           </div> 

css

img{ max-width:100%; } .thumbnails li> .fff .caption  {  background:#fff !important;  padding:10px } ul.thumbnails {  margin-bottom: 0px; } /* thumbnail box */ .caption h4 { color: #444; } .caption p {   color: #999; } li { list-style-type:none;} 

u need remove padding , border thumbnail class

like this

.thumbnail{   padding: 0;   border: none; } 

see updated fiddle


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -