I have two tags one links to the previous page and the other one to the next, and I have put both of them in the footer. In CSS, I can't get each tag to stick to its side of the footer without the other joining it.
The first thing I tried is setting "right" to 0 for "next" and "left" for "previous" but it didn't work. I tried "text-align" but that only put them in the center.
--!> HTML <--
<footer>
<a class="prev" onclick="location.href='#'">❮</a>
<a class="next" onclick="location.href='#'">❯</a>
</footer>
/* CSS */
/* Next and previous buttons */
.prev, .next {
cursor: pointer;
padding: 22px;
font-weight: bold;
font-size: 30px;
transition: 0.6s ease;
user-select: none;
}
.prev:hover, .next:hover {
background-color: white;
}
/* Footer */
footer {
background: rgba(0,136,169,1);
color: #090e5e;
font-size: 12px;
padding: 20px 0px;
overflow: hidden;
bottom: 0;
}