Results 1 to 3 of 3

Thread: Horizontal nav (troubles with the selected state)

  1. #1
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Horizontal nav (troubles with the selected state)

    Happy New Year to you all

    I'm in the process of creating a small website. I've downloaded a horizontal nav tweaking parts here and there so that it fits and has the same theme of the page.

    i'm using the chrome nav:
    http://www.dynamicdrive.com/dynamicindex1/chrome/#theme

    Here's the nav on my page so far:
    http://www.yorkorthodontics.co.uk/concept.html

    I've created a selected state for the test page, though can't work out how to make the rollover colour white aswell for the d.blue selected background??

    Could anyone tell me where I'm going wrong,

    many thanks,
    elliot

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by elliot
    http://www.yorkorthodontics.co.uk/concept.html

    I've created a selected state for the test page, though can't work out how to make the rollover colour white aswell for the d.blue selected background??
    The problem is the selector:

    Code:
    #wrap #menu .selected a:hover
    This pattern will match a hovered link, which is a descendant of an element with a class attribute that contains the word 'selected'[1]. You should change it (and could shorten it) to:

    Code:
    #menu a:hover.selected
    Alternatively, you could modify the rule with selector

    Code:
    #menu .selected
    to:

    Code:
    #menu a.selected {
      background: #3b63b3;
      color: #ffffff !important;
    }
    and remove the two rules that follow.

    Hope that helps,
    Mike


    [1] To continue: Which in turn is a descendant of an element with an id attribute that equals 'menu', which in turn a descendant of an element with an id attribute that equals 'wrap'.

  3. #3
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Mike, sorry for a late reply to yours. Thanks very much for taking the time to explains this to me.

    Just about to give it a go now

    all the best

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
  •