I'm using css flexbox for the first time and I am creating a paragraph with a link for my footer i.e.
<p class="footer--credit">link 2 <a href="#">company</a>.</p>
Flexbox somehow removes the gap after link 2, see here
body{
background: red;
}.footer__contents {
width: 100vw;
height: 70px;
display: grid;
grid-template-columns: 1fr 1fr;
color: $white;
background:pink;
}
a {
color: $orange;
text-decoration: none;
}
p {
display: flex;
align-items: center;
justify-content: center;
}
<div class="footer__contents">
<p class="footer--credit">link 2 <a href="#">company</a>.</p>
<p class="footer--credit">link 1 <a href="#">company</a>.</p>
</div>
Any ideas?