I've been working on setting up a navigation menu for my website, and I'm having trouble getting the "quit" link to align to the right while keeping the other links aligned to the left. I've tried various methods but just can't seem to get it right.
So far, I've attempted using a class for the <a>
tag within a <div>
. I even tried creating a separate <div>
, but that ended up causing the link to move to the next line, which is not what I want.
This is the code snippet I've been working with:
.right {
text-align:right;
}
<div class="meio">
<p class="paragraf">
<a href="/php_01/">menu</a>
<a class="right" href="/PHP2024_01/">quit</a>
</p>
</div>
I'm at a loss as to where I went wrong, and I've already spent nearly 2 hours trying to figure it out.