Reply
Creating unselectable menu items in a drop down menu
Old 07-14-2006, 02:04 PM Creating unselectable menu items in a drop down menu
D-Bot's Avatar
Novice Talker

Posts: 5
Name: Darren Johnston
Location: Winnipeg, Canada
I have been recently dabbling in Dreamweaver and I am wondering how to create a drop down menu where some of the menu items are headings and are therefore unselectable (and possibly even a different color). The perfect example of this is on Apple's website when you go the the "Visit A Store" drop down menu on their homepage (http://www.apple.com)

You can see that they have headings representing each State and they are gray and unselectable. The Cities beneath the States are in black and selectable. Does anyone know how to do this? Any helpfull links/tutorials?

Thanks!
__________________
- It's not what you don't know that will hurt you; it's what you don't know you don't know.
D-Bot is offline
Reply With Quote
View Public Profile Visit D-Bot's homepage!
 
When You Register, These Ads Go Away!
Old 07-14-2006, 02:34 PM Re: Creating unselectable menu items in a drop down menu
LadynRed's Avatar
Super Moderator

Posts: 6,699
Location: Tennessee
Look at their code and you can see how it's done:

Quote:
<option value="/retail/">See all Apple Store locations</option>

<optgroup label="Arizona">
<option value="/retail/chandler/"> &nbsp; Chandler, Chandler Fashion Center</option>
<option value="/retail/biltmore/"> &nbsp; Phoenix, Biltmore</option>
<option value="/retail/laencantada/"> &nbsp; Tucson, La Encantada</option>
</optgroup>
<optgroup label="California">
<option value="/retail/breamall/"> &nbsp; Brea, Brea Mall</option>
<option value="/retail/burlingame/"> &nbsp; Burlingame, Burlingame</option>
<option value="/retail/cortemadera/"> &nbsp; Corte Madera, Corte Madera</option>
<option value="/retail/southcoastplaza/"> &nbsp; Costa Mesa, South Coast Plaza</option>
<option value="/retail/baystreet/"> &nbsp; Emeryville, Bay Street</option>
<option value="/retail/glendale/"> &nbsp; Glendale, Glendale Galleria</option>
<option value="/retail/irvinespectrum/"> &nbsp; Irvine, Irvine Spectrum Center</option>
<option value="/retail/centurycity/"> &nbsp; Los Angeles, Century City</option>
<option value="/retail/thegrove/"> &nbsp; Los Angeles, The Grove</option>
<option value="/retail/beverlycenter/"> &nbsp; Los Angeles, Beverly Center</option>
<option value="/retail/manhattanvillage/"> &nbsp; Manhattan Beach, Manhattan Village</option>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 02:57 PM Re: Creating unselectable menu items in a drop down menu
D-Bot's Avatar
Novice Talker

Posts: 5
Name: Darren Johnston
Location: Winnipeg, Canada
thanks for the info. I'll give it a shot. (Remember - I'm really new to all this)
__________________
- It's not what you don't know that will hurt you; it's what you don't know you don't know.
D-Bot is offline
Reply With Quote
View Public Profile Visit D-Bot's homepage!
 
Old 07-14-2006, 05:19 PM Re: Creating unselectable menu items in a drop down menu
vangogh's Avatar
Post Impressionist

Posts: 8,923
Name: Steven Bradley
Location: Boulder, Colorado
D-Bot we were all new once. As LadynRed pointed out though, one great way to learn is to view the source code of a page when you see something you want to know how to do.

Even after all these years I'll still come across a site and wonder how they did something. I'll just stop and view the source and see if I can find out. Sometimes the source code is a mess and hard to find what you want, particularly if you're new, but the more you look at other people's code the easier it gets to find things.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Creating unselectable menu items in a drop down menu
 

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




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

 


Page generated in 0.12802 seconds with 12 queries