I am struggling to replicate a design and align some items properly without resorting to absolute positioning. The design I want to achieve looks like this https://i.sstatic.net/HaOXT.jpg
https://i.sstatic.net/EovkI.jpg
The grey area represents a section with a layout in mind. I am aiming for a row with three col-md-4
columns. In the first column, there is text that should be vertically aligned in the middle. Here's the code snippet:
<div class="col-md-4">
<div class="">
<h3>Title</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim</p>
</div>
</div>
The challenge is achieving vertical alignment only in the first column without affecting the other columns. Column 2 is simple with just an image, but column 3 featuring two rectangles spanning columns 1 and 2 raises questions about using absolute positioning. Will responsiveness be compromised?
Another issue is that the grey area is set to 100vh
, causing some elements to overflow without pushing content down due to absolute positioning.
To showcase my issues, here is a fiddle link: JSFiddle
Any suggestions on achieving this specific layout would be highly appreciated.
Thank you