So I have two questions:
1. How can I vertically align text in my footer with two or more lines?
(I'm justing line-height with the height of footer to align one line but it leaves huge gaps between two or more lines)
2. How can I remove underline from CSS ::after content thing but keep it under the text.
(so all Links will look on hover like the last one)
HTML & CSS
footer {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
min-height: 50px;
line-height: 50px;
text-align: center;
margin-top: auto;
margin-bottom: auto;
color: white;
background-color: #232323;
}
footer a {
cursor: pointer;
}
footer a:hover {
text-decoration: underline;
}
footer a:not(:last-child)::after {
content: " | ";
cursor: default;
}
<footer>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
<a>Link</a>
</footer>
JSFIDDLE
https://jsfiddle.net/qmbbtmb5/