Is it possible to make two adjacent elements behave like a single element, in a flexbox layout?
Say this is my markup:
<div class="flex-container">
<div>Flower</div>
<div>Tree</div>
<div>Bee</div>
</div>
This is what I want on desktop:
| | |
| | Flower |
| Tree |___________|
| | |
| | Bee |
| | |
And on mobile:
| Flower |
|________|
| |
| Tree |
|________|
| |
| Bee |
So if I could combine Flower and Bee into a single flex column on desktop, it would be nice.
I could probably use a float but I'm already using a flex grid.
This is a page with variable content, I would want the content to grow vertically, and for a vertical scrollbar to appear on the page, if it goes beyond the viewport.
There is no height set on any of the boxes.
I am already using Flexbox for the grid and would not want to add any wrappers.