Forums

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

Home Forums CSS [Solved] Make hover BG fill up the li navigation Reply To: [Solved] Make hover BG fill up the li navigation

#189366
Paulie_D
Member

It’s always best to size anchors from the inside out..so your padding should be on the a not the li.

Also with inline-block you need to account for the whitespace.

Here I use I eliminate that by using the font-size:0 trick.

http://codepen.io/Paulie-D/pen/qEdQyZ