The text inside <p>
and <a>
is not on the same horizontal line, why? I have tried with display: inline-block
or text-align
and it does not seem to work. How is it possible to change <p>
's text to make it on the same line of <a>
's text and the other way round? The only way I can think is changing the padding in a trial and error fashion. Is there any other more intelligent way?
.down {
display: flex;
justify-content: space-between;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
font-weight: normal;
font-style: normal;
color: rgb(41, 41, 41);
}
#fright {
background: rgb(220, 20, 60, 0.7);
color: #fff;
text-decoration: none;
padding: 14px 30px;
border-radius: 8px;
text-align: end;
}
#fleft {
background: rgb(220, 20, 60, 0.7);
color: #fff;
padding: 14px 30px;
border-radius: 8px;
}
#heart {
color: red;
font-size: 20px;
}
<footer class="down">
<p id="fleft">Made with <span id="heart">♡</span> in Seattle</p>
<a id="fright" href="#">Contact Me</a>
</footer>