I have multiple divs inside a container that I want to evenly distribute horizontally:
[container [obj1] [obj2] [obj3] [obj4] ]
Additionally, I would like the container to be centered on the page
My current CSS (stylus) code for the container is as follows:
@media( min-width: 900px ) {
display: flex;
width: 830px;
margin: 0 auto;
justify-content: space-between;
}
However, I am experiencing some issues with strange margins and the container not being properly centered on the page. Could this be due to how I am utilizing the display:flex
and 'justify-content` properties?