- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
On my navbar each item has a little gap on the left side. I have it on codepen so you can see.
[Click Here](http://codepen.io/death180/pen/vIDrf “Click Here”)
If you remove the commented background you can clearly see the gaps. I’m sure it’s something obvious that I’m missing, but I would appreciate if anyone could shed some light on the situation.
For me it happens in Chrome, FF, and IE.
here @chriscoyier explains it [here](https://css-tricks.com/fighting-the-space-between-inline-block-elements/)
As another option, set the font-size of the parent ul to 0.
You will have to reset it for the li though.
> As another option, set the font-size of the parent ul to 0.
Just for information, some browsers do not allow font-size that low. Take Chrome Chinese for example; any font-size below 12px will be displayed at 12px.
As I said, another option…not a complete solution.
Completely valid option in most cases.
[Here is another way to do that…](http://codepen.io/jiri/pen/itkqC “”)