Results 1 to 6 of 6

Thread: AnyLink style

  1. #1
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question AnyLink style

    1) AnyLink Menu

    2) http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Ok, at the risk of sounding stupid, How do you apply style to the anchor link? After scanning the code briefly it appears that you can apply a style class to the drop down menus but not to the anchor link itself. Also can you format the text in the dropdown to control the text color when the link has been "visited" etc?

    Help please.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Use this:
    Code:
    .anylinkmenu ul li a {
    //style for the anchor here
    }
    and this:
    Code:
    .anylinkmenu ul li a:visited {
    //style for the visited anchor here
    }
    Good luck!

  3. #3
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, the first line of code already exists in the .css file and is having no effect on the anchor link style and the second line set the text in the dropdown to the styled color perminantly regardless of if the link was visited or even being hovered over.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out and help you.

  5. #5
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Testing on local computer. It's not up on a site. the code that I'm refering to is the AnyLink code and files in thier standard form. As it comes straight out of the box. See first post for description of the issue.

    Thanks

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

    Default

    If you mean how to style the actual anchor link, for example:

    Code:
    <p><a href="http://www.dynamicdrive.com" class="menuanchorclass" rel="anylinkmenu1">Default Example</a></p>
    You would just style either the "menuanchorclass" class in this case, or add the desired inline style into the A element above.

    Also can you format the text in the dropdown to control the text color when the link has been "visited" etc?
    Please refer to Snooker's reply above, which should answer that.
    DD Admin

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
  •