1

Image

I am developing a website and I want a menu like the above image. This is what I have tried: jsFiddle

HTML

         <div class="">
            <ul class="header-menu-ul">
            <li class="header-menu menu-link1-color"><a href="" class="header-menu-link ">ABC's Office</a></li>
            <li class="header-menu menu-link2-color"><a href="" class="header-menu-link ">Benefits</a></li>
            <li class="header-menu menu-link3-color"><a href="" class="header-menu-link ">NEW Brand</a></li>
            <li class="header-menu menu-link4-color"><a href="" class="header-menu-link ">Editorial</a></li>
            <li class="header-menu menu-link5-color"><a href="" class="header-menu-link ">Manger</a></li>
            <li class="header-menu menu-link6-color"><a href="" class="header-menu-link ">Extra</a></li>
            </ul>

            </div>

The problem I'm facing is it's taking a space between <li> tags.

racecarjonathan
  • 1,244
  • 1
  • 11
  • 22
Praveen M P
  • 11,314
  • 7
  • 34
  • 41
  • 2
    You should [remove the white space between inline-blocks](http://stackoverflow.com/questions/21875226/space-between-nowrap-inline-blocks/21875532#21875532) like so: http://jsfiddle.net/hashem/x98eaj92/2/ – Hashem Qolami Aug 20 '14 at 09:33
  • fixed - http://jsfiddle.net/x98eaj92/4/ the space was caused by inline-block. to fix this you need to set the font size to 0 of the div container then set the font size in `
  • ` again.
  • – Wreeecks Aug 21 '14 at 01:37