Results 1 to 3 of 3

Thread: Chrome CSS Drop Down Menu (v2.5) (selected class problem)

  1. #1
    Join Date
    Jun 2008
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Question Chrome CSS Drop Down Menu (v2.5) (selected class problem)

    1) Script Title: Chrome CSS Drop Down Menu (v2.5)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem:

    to explain the issue easier please see the code here:
    http://72.44.80.146/~wat/test1/demo.htm

    Resources tab is selected by default.
    when you move your mouse on resources tab, the resources tab loses it's .selected class.

    I want to make sure resources tab is always selected unless user hits a link.

    thank you

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    For the selected menu item, instead of giving it a CSS class of "selected", which is reserved by the script, try giving it a different CSS class that still styles it the way you want it to, such as:

    Code:
    <li><a class="current" href="#" rel="dropmenu1">Resources</a></li>
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    newyorker2 (04-01-2009)

  4. #3
    Join Date
    Jun 2008
    Posts
    40
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    For the selected menu item, instead of giving it a CSS class of "selected", which is reserved by the script, try giving it a different CSS class that still styles it the way you want it to, such as:

    Code:
    <li><a class="current" href="#" rel="dropmenu1">Resources</a></li>
    I feel so dumb right now, why didn't I do that in the first place?

    thank you.
    have a great day

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •