I have a custom link(user manual) going on in my navigation menu. I leave the original <a>
empty and link a automatically download pdf under navigation label area.
Now my menu has an empty space left. How do I remove it?
I have a custom link(user manual) going on in my navigation menu. I leave the original <a>
empty and link a automatically download pdf under navigation label area.
Now my menu has an empty space left. How do I remove it?
Share Improve this question edited Aug 2, 2020 at 12:27 mozboz 2,6281 gold badge12 silver badges23 bronze badges asked Aug 2, 2020 at 4:15 EuniceEunice 11 Answer
Reset to default 0it's hard to answer without seeing the HTML and CSS, but from your description the behaviour is correct. If you don't want the anchor tag to take up any visible room, you should give it a display:none. If you can edit the markup you could either add a class like this
<a href="#" class="hidden"></a>
with this css in your stylesheet:
.hidden {
display: none;
}
or you could do an inline style (although not good practice)
<a href="#" style="display: none"></a>