Issue on Adjusting Carousel Image Size on Bootstrap 3 -
can please take @ link , let me know doing wrong here make image size shorter side box on ipad landscape (col-md-*) sizes! can see have perfect size devices on ipad landscape view!
am doing thing wrong on calculating image size? have fix it? or wrong grid setting?
again testing on screnfly image looks on devices until 12" , 10" notepads , ipad landscape. (of course problem may continue smaller size devices since have made infobox hidden, not clear here!? here code using
<div class="well banbox"> <div class="row"> <div class="col-lg-9 col-md-9 col-xs-12 banpic"> <div id="carousel-example-generic" class="carousel slide"> <!-- indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <!-- wrapper slides --> <div class="carousel-inner"> <div class="item active"> <img src=" http://placehold.it/900x398" alt=""> <div class="carousel-caption"> slide 1 </div> </div> <div class="item"> <img src="http://placehold.it/900x398" alt=""> <div class="carousel-caption"> slide 2 </div> </div> <div class="item"> <img src="http://placehold.it/900x398" alt=""> <div class="carousel-caption"> slide 3 </div> </div> </div> <!-- controls --> <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev"> <span class="icon-prev"></span> </a> <a class="right carousel-control" href="#carousel-example-generic" data-slide="next"> <span class="icon-next"></span> </a> </div> </div> <div class="col-md-3 hidden-sm hidden-xs baninfo"> <ul class="list-unstyled"> <li> <div class="well list clearfix" id="lst1"> <div class="col-md-12 col-lg-9 one"> <h4 class="white">our programs</h4> <h6>a place can trust</h6> </div> <div class="ol-md-2 col-lg-2 2 hidden-md"><span class="arrow" id="arr1"></span> </div> </div> </li> </ul> <ul class="list-unstyled"> <li> <div class="well list clearfix" id="lst2"> <div class="col-md-12 col-lg-9 one"> <h4 class="white">safe stay space</h4> <h6>ministry of health</h6> </div> <div class="ol-md-2 col-lg-2 2 hidden-md"><span class="arrow" id="arr2"></span> </div> </div> </li> </ul> <ul class="list-unstyled"> <li> <div class="well list clearfix" id="lst3"> <div class="col-md-12 col-lg-9 one"> <h4 class="white">about us</h4> <h6>a place can trust</h6> </div> <div class="ol-md-2 col-lg-2 2 hidden-md"><span class="arrow" id="arr3"></span> </div> </div> </li> </ul> <ul class="list-unstyled"> <li> <div class="well list clearfix" id="lst4"> <div class="col-md-12 col-lg-9 one"> <h4 class="white">take tuor</h4> <h6>visit our daycare online</h6> </div> <div class="ol-md-2 col-lg-2 2 hidden-md"><span class="arrow" id="arr4"></span> </div> </div> </li> </ul> </div> </div> </div>
your issue particular ratio of image results in not being tall enough fill area being placed.
your image ratio = 900/398 = 2.26 carousel ratio lg = 848/375 = 2.26 carousel ratio md = 698/353 = 1.97
thus, image rectangular fill space height perspective.
unfortunately, not know of way fix without possibly making image bad. either have stretch fit using javascript, or specify height of row , clip using overflow:hidden
.
a third option make image right height col-md, , let col-lg people suffer image being taller nav on right. solution go with.
Comments
Post a Comment