How can I create a wide image within a Bootstrap container?
<div class="container-fluid">
<div class="container">
<img data-layout="wide" src="big-image.jpg" alt="Big image" class="embedded_image">
</div>
</div>
I want the image to extend out of the container, from right to left. Unfortunately, I cannot add an extra class to the source image, so I need to achieve this effect using CSS on
.embedded_image[data-layout="wide"]
I attempted the following CSS code:
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
max-width: 1000%;
width: auto;