I have 2 graphic images that I want placed into a flex row. I want the first item to left justified and the second item to be right justified. This is the code I am running:
<div class="flex-container">
<div class="flex-item-left">
<img src="images1.png">
</div>
<div class="flex-item">
<img src="images2.png">
</div>
</div>
And this is the .css that I have:
.flex-container {
display: flex;
align-items: center;
justify-content: center;
}
.flex-item {
}
.flex-item-left {
justify-items: flex-start;
}
It was my understanding that justify-items: flex-start
would pull the item with this class to the beginning of the flex container. In my case, this should pull image1.png to the left margin. However, both images get placed in the center of the flex box.
Any assistance is greatly appreciated.
Thanks!