Mobile app version of vmapp.org
Login or Join
Nimeshi995

: How do I get rid of unwanted gaps in a horizontal navigation bar? That was my question, in the form of a question. Fortunately, I've already whipped up some code and can only point you to

@Nimeshi995

Posted in: #Html

That was my question, in the form of a question.

Fortunately, I've already whipped up some code and can only point you to errors in the html.. although I don't know what they are. Here's what I've got:
cssdesk.com/uDaLg
When the extra navigation links (which would normally be characterized by line breaks) are laid out in my navigation bar, my html puts a gap in the padding on the right side. I have highlighted the background in case you're overly skeptical that it is in fact my css. Of course, you can also go and view the css for yourself.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lengel546

There is always a gap between inline elements like spans. There are a couple of ways to get rid of the space. You can put all the spans on one line or you can do something like this to hack it:

<span><a href="#">Link</a></span><!--
--><span><a href="#">Link</a></span><!--
--><span><a href="#">Link</a></span>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme