Looking to create a unique layout that involves:
- Utilizing a three-column structure
- Incorporating a div element that spans two columns
- Positioning an image within the two-column div so that it extends to the left edge of the browser window while staying "stuck" to the right side
https://i.sstatic.net/wJko3.jpg
Attempted implementing the following code on the image, but with limited understanding of its effect:
margin-left: calc( -100vw/2 + 100%/2);
HTML
<div class="wrapper">
<div class="col-1"><img src="blabla" /></div>
<div class="col-2">Content</div>
</div>
CSS
.wrapper {
max-width: 1400px;
display: block;
margin: auto;
}
.col-1 {
float: left;
width:66.666%;
}
.col-2 {
float: left;
width: 33.333%;
}
.col-1 img {
display: block;
width: 100%;
height: auto;
margin-left: calc( -100vw/2 + 100%/2);
}
Displayed result achieves the desired left alignment, but struggles with maintaining the image's position on the right.
Uncertain about how to modify the layout to achieve desired results, or if it is even technically feasible.