I just asked a question concerning the dynamic CSS positioning of three blocks as the screen size changes. I tried to simplify the situation before I posted and now I feel an idiot because I've just realised that what I actually need is six blocks:
<div class="block">A</div>
<div class="block">B</div>
<div class="block">C</div>
<div class="block">D</div>
<div class="block">E</div>
<div class="block">F</div>
The 3 block solution doesn't work here because I can't wrap A+B, C+D, E+F in divs and also wrap A+B+C and D+E+F. It would require overlapping <div>
s. What do I do? Please help!
My ideal solution would be pure CSS (media queries) or minimal Javascript (pref. no libraries).
EDIT: To be clear, what I'm after is a solution that dynamically changes the layout of the boxes (as per the diagram above) when the screen width changes.
Also, I don't want:
AB ABC
CD DEF
EF