Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Little gaps in nav items

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45185
    Alex
    Participant

    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.

    #136932
    unasAquila
    Participant
    #136952
    Paulie_D
    Member

    As another option, set the font-size of the parent ul to 0.

    You will have to reset it for the li though.

    #136956
    Kitty Giraudel
    Participant

    > 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.

    #136957
    Paulie_D
    Member

    As I said, another option…not a complete solution.

    #136962
    Kitty Giraudel
    Participant

    Completely valid option in most cases.

    #137117
    jurotek
    Participant

    [Here is another way to do that…](http://codepen.io/jiri/pen/itkqC “”)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.