I'm using a container in Bootstra 4 to center the conent of my page in the middle of the browser. So far so normal.
But I need something more. The content inside the container should break out on the left side and should grow to the browser-window. But only on the left side.
Because I'm using the slick slider, I can't use position:absolute
or something else on a single object in the container DIV. I need an whole DIV inside the container to grow to the left side. And I need the container to align it on the right side to the rest of the page.
Here is my actual code: https://codepen.io/cray_code/pen/erQJey
This is what I need. The image inside the slides should grow to the left. The blue background is the browser window:
<div class="bg-dark">
<div class="container bg-white">
<div class="slider">
<div><img src="http://via.placeholder.com/2500x500" class="img-fluid"></div>
<div><img src="http://via.placeholder.com/2500x500" class="img-fluid"></div>
<div><img src="http://via.placeholder.com/2500x500" class="img-fluid"></div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.slider').slick({
infinite: true,
dots: true,
arrows: false,
draggable: false,
fade:true,
autoplay:true,
autoplaySpeed: 4000,
speed:1200,
})
});
</script>