Basically the important part is that the centred div come after the left and right divs in the markup. Check out this example, it uses margin-left: auto and margin-right: auto on the centered div, which causes it to be centred.
Perfect! Come to think of it, I think I had noticed that while scouring Google for a few examples, but it’s importance was never pointed out so I guess I never tried it.
Thanks for the help!
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘CSS’ is closed to new topics and replies.