I have a class called .content-div (red border), the div that contains two items each with a class, .item-img (green border) and .item-copy (yellow border). For some reason, these two items are not centered. I’d like them to be centered as a pair with a bit of space between them. Notably, changing the value for .content-div’s justify-content shows no changes. Thoughts? Help please.
Thanks for the reply! I mean centered on the horizontal. Notice the yellow bow w/ text is touching the right side of the red border. I am trying to center the stump and the yellow text div together (not on top of one another) within the red border. Line 135, justify-content: center; If I change the value to flex-end or something, nothing changes. Something else is affecting the alignment and I just don’t see it.
This img has two classes already. I’ve added a fixed width value and auto height value. I also made changes to the other class and the container element. It’s finally lining up! Thanks.
I’m pretty new here, so i’m sorry if this is a stupid response, but have you tried adding a margin? I added a margin-left: 25px; to the .item-copy itself and it looks a little more centered that way, if I understand what you’re saying.