The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design CSS Centre and Left align Reply To: CSS Centre and Left align



Maybe flexbox is the solution?

.box-wrapper::after is adding a “ghost” block at the end that pushes the last red blocks to the left.

But as soon as there’s not enough space for a red block there will be an empty space at the right of the green box…