Imagine the following layout, where the dots represent the space between the boxes:
[Left box]......[Center box]......[Right box]
Here is another way to do it, using display: flex
in the parents and childs:
.Layout{
display: flex;
justify-content: center;
}
.Left{
display: flex;
justify-content: flex-start;
width: 100%;
}
.Right{
display: flex;
justify-content: flex-end;
width: 100%;
}
I'm on the left
Centered
I'm on the right