Flexbox makes it easy to achieve this effect, using the justify-content property. I have a div container on my web page with fixed width and it contains form elements for logging in. Below these elements there are a submit button, forgotten password link etc. How to spread them evenly? I don't want Instead. The <content-distribution> enumerated value type is used by justify-content and align-content properties, and the place-content shorthand, to distribute a container's extra space among its alignment subjects.