I have a flexbox design that I am trying to create with the specific layout shown in the image:
https://i.sstatic.net/Sy20K.jpg
My HTML code is as follows (and I do not want to make any changes to it):
<div class="wrapper">
<div class="page-header">Heading</div>
<h3 class="right_1">right_1</h3>
<div class="right_2">right_2</div>
<div class="left">form element</div>
<h3 class="right_3">right_3</h3>
<div class="right_4">right_4</div>
</div>
This layout is the standard format for the Joomla contact page. However, I want to change the design without modifying the HTML/PHP code.
Is it possible to achieve this using flexbox?
Additionally, can I utilize @media
queries to ensure that right_1
- right_4
stack under left
on mobile devices (e.g., screen width < 800px)?
I am having trouble implementing this myself as I always end up with right_1
- right_4
positioned next to each other instead of stacked beneath the left portion for the full height.