I want to horizontally center a few inline blocks, but at the same time have them align to the left on their last row (see below).
The problem is that I achieved something like this (http://jsfiddle.net/5JSAG/):
| _____ _____ |
| | | | | |
| | 1 | | 2 | |
| |_____| |_____| |
| _____ |
| | | |
| | 3 | |
| |_____| |
While I want something like this:
| _____ _____ |
| | | | | |
| | 1 | | 2 | |
| |_____| |_____| |
| _____ |
| | | |
| | 3 | |
| |_____| |
You can see some sample HTML at http://jsfiddle.net/5JSAG/.
I have tried using column-count
and column-width
but it doesn't work as I want it to, because the order of the blocks changes:
| _____ _____ |
| | | | | |
| | 1 | | 3 | |
| |_____| |_____| |
| _____ |
| | | |
| | 2 | |
| |_____| |