I am currently in the process of developing a responsive website, and my goal is to have the homepage display without any need for scrolling. The layout consists of a 239px tall header, a footer that is 94px tall, and an Owl Carousel that slides through images in the middle of the page. The CSS on the Owl Carousel is set to 100% width to display the entire image. However, adjusting the container height to window.innerHeight results in the image being cropped within the slider while maintaining its 100% width.
Is there a way to make the Owl Carousel have a relative height that automatically adjusts the width to fit perfectly so that the Header + Owl Carousel + Footer all fit within the user's browser window without requiring them to scroll?
EDIT:
<div id="post-111" class="post-111">
<div class="sy-box">
<div class="sy-slides-wrap>
<div class="sy-slides-crop">
<ul class="ken-slider">
<li class="sy-slide kenburns""><img alt="" src="image.jpg"></li>
<li class="sy-slide kenburns""><img alt="" src="image.jpg"></li>
</ul>
</div></div></div></div>
This is the basic structure of the Owl Carousel with a 239px tall header and a 94px tall footer. The images are designed to scale based on the width of .sy-box with max-height:none;
Here is a great example similar to what I am working on - a webpage with a header, footer, and Owl Carousel in the center. How would you modify this layout to ensure it fits the screen without cropping images, but instead scaling them to fit on the page?