html - ul li bullet point image doesn't work with when hovering over list links -



html - ul li bullet point image doesn't work with when hovering over list links -

i want create when hover cursor on link in list, bullet point image shows left of list text. however, not seem work.

i've tried next css , not work:

ul.navibox a:hover{ list-style-image:url(images/crown-icon.jpg);}

any ideas? thanks

current css:

ul.navibox{ margin:0 0 0 0; padding:5px 0 0 20px; list-style-type:none; font-family:arial,verdana,helvetica,sans-serif; font-size:14px; color:#333333;} ul.navibox li a:link{ color:#ff0; text-decoration:none;} ul.navibox li a:visited{ color:#f00;} ul.navibox li a:hover{ color:#f0f; list-style-image:url(images/crown-icon.jpg);}

html:

<div id="middle_left_box"><span style="padding-left:10px">categories</span> <h3>accessories</h3> <h4>supplies:</h4> <ul class="navibox"> <li>pellets</li> <li>gas</li> <ul> </div>

without demo beingness provided it's hard sure seek this

ul.navibox{ margin:0 0 0 0; padding:5px 0 0 20px; list-style-image:none; /* default 'non-image' */ font-family:arial,verdana,helvetica,sans-serif; font-size:14px; color:#333333;} ul.navibox li:hover{ list-style-image:url(images/crown-icon.jpg);} ul.navibox li a:link{ color:#ff0; text-decoration:none;} ul.navibox li a:visited{ color:#f00;} ul.navibox li a:hover{ color:#f0f; }

your previous css applied list image anchor link doesn't have property available it. hover has on list item itself.

html css list html-lists

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -