I want to distribute the free space between two elements in a container with flex box, but I do some wrong.
The flex box is supposed to make the h3 and p centered along the main axis (grid-direction is column). However, whatever value I type, the h3 and p doesn’t move in any direction.
I tried to fix it with align-content, but still nothing happens.
My code:
HTML:
div class=“ingrid-text”>
<h3>Free shipping</h3>
<p>We make sure you recieve your cake as soon as we have finished making it.>> ></p>
Could be browser.
In .ingrid-text the justify content center isn’t doing anything so it could go but the align-content:center; can just be switched to align-items:center; or as @Annestezia said text-align also works.
I always struggle to remember which justify or align I need and whether it’s items or content. Sometimes it’s just trial and error until it works.
Page is looking good by the way