Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Change list-style on a:hover
Old 08-27-2007, 06:09 PM Change list-style on a:hover
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Okay, it is monday (and its been a long one) so forgive me if this is a dumb question.
I am making a menu out of a list. I don't want the list to have any bullets. So I used "list-style:none". However, these list items are links, and when a user rolls over them, I would like for a little arrow (a custom made image) to pop up next to the link. I thought I would simply use "list-style-image" on the a:hover pseudo class. But this doesn't seem to work. Any suggestions?
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-27-2007, 07:02 PM Re: Change list-style on a:hover
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
li { list-style: none; }

li:hover { list-style: url('picture.gif'); }
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 08-27-2007, 07:45 PM Re: Change list-style on a:hover
mackaltman's Avatar
Super Talker

Posts: 135
Name: Mack Altman III
Location: Goose Creek, SC, USA
Trades: 0
Kyle's already got ya.
__________________
Mack Altman III

Please login or register to view this content. Registration is FREE

My Biggest Pet Peeve: "Web Designers" who have no artistic skill.

mackaltman is offline
Reply With Quote
View Public Profile Visit mackaltman's homepage!
 
Old 08-27-2007, 08:40 PM Re: Change list-style on a:hover
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
I didn't know you were allowed to use the :hover pseudo class on anything except for the anchor tag. I will give this a try. Thanks!
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-27-2007, 08:51 PM Re: Change list-style on a:hover
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Well, you can-- BUT, it will not work with IE6.
It would be easier if you put the custom image in as a background on the <a>, then you'll have no trouble getting IE6 to work. Just leave list-style at none, then do a no-repeat on the bg image for the a:hover. Adjust padding on the link text as needed.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-27-2007, 10:56 PM Re: Change list-style on a:hover
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
bah, yeah, I have to make sure it works for IE6. I will try the background thing. I didn't think of that! Thanks! **update - This worked out great! Thanks!**
__________________

Please login or register to view this content. Registration is FREE

Last edited by angele803; 08-28-2007 at 11:10 AM..
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-28-2007, 10:11 PM Re: Change list-style on a:hover
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Glad to help.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Change list-style on a:hover
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27917 seconds with 12 queries