Answers for "bootstrap carousel dynamic height jquery"

0

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');
});
    });
Posted by: Guest on November-18-2020

Code answers related to "bootstrap carousel dynamic height jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language