My content management software is imposing rigidity on how my elements are parsed on the page, and I'm stuck with something like the following HTML:
<div class="section-container">
<h4>Title Coming In from Content Mgmt</h4>
<div class="image-container">
<img src="some_product_img" />
</div>
<div class="paragraph-container">
<p>Some product information blah blah blah</p>
</div>
</div>
Not much I can do about that. But my design requires a layout like such:
Given that I cannot change the HTML structure here, is there some kind of CSS wizardry that will allow me to achieve the desired layout?
I have experimented with using float
s and tried some flexbox tricks like flex-basis
, but reached a plateau in my knowledge and second-guessed if it were possible with those methods.
I appreciate the help!