I've got 4 panels, and I have a checklist at the top which controls which panels you want to view. How would I set it up so that if they uncheck one of the panels, then the rest will reposition. A bit vague, so:
___ ___
| 1 | | 2 |
|___| |___|
___ ___
| 3 | | 4 |
|___| |___|
So if they uncheck 2 and 3, I would like 4 to be position next to 1
___ ___
| 1 | | 4 |
|___| |___|
And if they unchecked just 3, then 4 would go to the 3's position. These panels would also be centered on the page, but if the something like the 3 is unchecked, I want the fourth panel to be left aligned with the first panel, and not centered between them. So like this:
___ ___
| 1 | | 2 |
|___| |___|
___
| 4 |
|___|
And not this:
___ ___
| 1 | | 2 |
|___| |___|
___
| 4 |
|___|