admin管理员组文章数量:1330565
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>
本文标签: How to remove empty ltagt line space in navigation menu
版权声明:本文标题:How to remove empty <a> line space in navigation menu? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742214064a2434244.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论