Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

bootstrap carousel dynamic height jquery


$(function(){
    $(document).ready(function(){
        var height = $(window).height();
var width = $(window).width();
var header =$('header.site-navbar').height();
var finalwidth =height-header;
// alert(finalwidth);
$('.carousel-item img').css('height',''+finalwidth+'px');
});
    });
 
PREVIOUS NEXT
Tagged: #bootstrap #carousel #dynamic #height #jquery
ADD COMMENT
Topic
Name
6+8 =