I've been tasked with creating a web mockup featuring a transparent PNG image overlaying two divs in multiple rotations. I've used Bootstrap 4.1 to structure the site, utilizing containers, rows, and cols.
<section class="one">
<!-- .container, .row, .col for content -->
</section>
<img src="flowers.png">
<section class="two">
<!-- .container, .row, .col for content -->
</section>
View the Codepen here: https://codepen.io/anon/pen/odPZqN
I'm currently exploring options for positioning the image on top of the two containers. While using the Tether JS library provides a solution, it isn't the most lightweight option. Additionally, absolute positioning is not feasible for an adaptive/responsive site.
Check out the Codepen with relative/absolute positioning: https://codepen.io/anon/pen/jxvmMX
I also experimented with floating the image left, but it caused unwanted interactions with the content, impacting the layout negatively.
Take a look at the Codepen using float: https://codepen.io/anon/pen/QrVpor
What are your thoughts on potential solutions for this layout challenge?
Mockup image: https://i.sstatic.net/Mm1zj.png