I have a problem regarding positioning, ordering and breaking divs for mobile.
Above is a simplified image of a layout I currently have. The issue is with the whitespace above description section which happens due to higher main section.
I'd like for it to go up and fill empty space.
Also, I need to break it into mobile view like this (each 100% width):
Main Gallery Description Amenities
This I can achieve with flexbox, or lost grid, or any other ordering, but then I can't get rid of whitespace.
I've tried flexbox positioning, float positioning, lost-column positioning, css3 columns, but I'm now out of ideas.
Here's a Fiddle for Flexbox example which doesn't solve the issue but shows the problem and general idea.
In example:
.wrapper {
display: flex;
flex-wrap: wrap;
}
.wrapper__item {
flex: 0 0 50%;
border: 1px solid gray;
}
Any ideas?