Reply
Drop Down Menu Using Images
Old 08-09-2006, 12:55 PM Drop Down Menu Using Images
Average Talker

Posts: 20
Hi

Could someone help me on this one please, if you take a look at a site I have developed World of Learning 2006 Exhibition Conference and Seminars - Learn Events, you will see that the drop downs work fine.

I need to replace the text, FREE Exhibition, Conference 2006 etc with graphics.

I think I know I will have to set up a class for each menu item in order to place a bground image of the graphic so I can still have HTML text within the list item.

I have tried this, but it does not seem to work, especially when I add text-indent:-9999px (to hide the html text)

Does anyone have any examples or any help for me!

Thank You
mumford is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-15-2006, 07:28 AM Re: Drop Down Menu Using Images
Coulix's Avatar
Average Talker

Posts: 16
Should work, i have that need covered on 3 different sites i've made.
Make sure you put the background image into the a:hover style, so it triggers correctly. And that padding/width is correct so it acctually shows. This is some code ripped directly out from one of my working sites, a part of a bigger dynamic dropdown menu i have made and implemented into a selfmade CMS represented on easyweb.thronic.no (norwegian). The top menu there acctually demonstrates the function you are after. But the little snippet below is all you should need to get going.

Code:
#navwrapper a {
 display: block;
 width: 109px;
 background-image: url("easyweb/filarkiv/button_munder.gif");
 margin: 0;
 padding: 2px 1px 1px 10px;
 font-family: Verdana, Arial, Helvetica, sans-serif;
 font-size: 10px;
 font-weight: normal;
 text-decoration: none;
 color: #eeeeee;
}

#navwrapper a:hover {
 background-image: url("easyweb/filarkiv/button_mover.gif");
 color: #ffffff;
}
__________________
NorthCube, Webtechnology from the north.
Web Design Templates - Web Scripts - Web e-Books - Web Articles.
To avoid criticism do nothing, say nothing, be nothing. - Elbert Hubbard, 1856 - 1915.

Last edited by Coulix : 08-15-2006 at 07:32 AM.
Coulix is offline
Reply With Quote
View Public Profile
 
Old 08-15-2006, 09:26 AM Re: Drop Down Menu Using Images
Average Talker

Posts: 20
Thanks for the reply will check it out
mumford is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Drop Down Menu Using Images
 

Thread Tools

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.11304 seconds with 12 queries