css - Remove Gaps Between Links In Unordered List -


this has ridiculously simple, i'm not seeing it, , appreciate bit of advice.

i applied css make different images appear when mouse hovers on different links. 1 of images there default, being part of background jpg image. other images appear when mouse hovers on corresponding link.

problem: when slide cursor left , right along row of links, or top , bottom vertically, there gaps between links, approximately 4px or so. when cursor on gap, links ineffective, no image appears on top, , background image revealed, creating sort of flicker.

question: how can remove gaps between links, keeping background image visible when cursor hovers on link, else?

thank in advance!

the reason of little gap because if have line break or multiple spaces between 2 elements, browser collapse 1 space. space seeing.

what need following (i know markup looks ugly):

<div id="hero-links-container"> <ul>      <li>         <a href="" id="hero-link-pianos"><div id="hero-image-piano"></div>pianos</a><a href="" id="hero-link-woodwinds"><div id="hero-image-woodwinds"></div>woodwinds</a><a href="" id="hero-link-percussion"><div id="hero-image-percussion"></div>percussion</a><a href="" id="hero-link-music-education"><div id="hero-image-music-education"></div>music education</a><a href="" id="hero-link-brasswinds"><div id="hero-image-brasswinds"></div>brasswinds</a><a href="" id="hero-link-strings"><div id="hero-image-strings"></div>strings</a><a href="" id="hero-link-accessories"><div id="hero-image-accessories"></div>accessories</a><a href="" id="hero-link-recorded-music"><div id="hero-image-recorded-music"></div>recorded music</a>     </li> </ul> </div>  

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -