"set height through jquiry"
Bootstrap 3.3.0 Snippet by naimansari

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div id="index-page"> <div class="container"> <div class="row"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> </div> </div> </div>
#index-page { background-color:#000; }
$(document).ready(function() { function setHeight() { windowHeight = ($(window).innerHeight() - 50) + "px"; $('#myCarousel').css('min-height', windowHeight); }; setHeight(); $(window).resize(function() { setHeight(); }); }); // If you don't care about changing the height when the window resizes then you can use the following simplified version instead: // $(document).ready(function() { // windowHeight = $(window).innerHeight(); // $('.sidebar').css('min-height', windowHeight); // }); $(document).ready(function(){ function setHeight(){ windowHeight = ($window).innerHeight()); $("#index-page").css("min-height", windowHeight); }); });

Related: See More


Questions / Comments: