Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormumford
    • CommentTimeApr 18th 2006
     permalink
    Hi

    Could someone please take a look at this page please http://sam.users42.donhost.co.uk/about.asp

    The main navigation and sub navigation menus are asp include files. I have set up a css style to make the "clicked" link stay highlighted

    #subnav .current>a{
    /*background:#BFB6AC;*/
    color:#91CEF4;
    display:block;
    cursor:auto;
    }

    And within the asp include file the links look like this

    <li <% If Request.ServerVariables("URL") = "/about.asp" Then Response.Write("current") End If %>"><a href="about.asp?phpMyAdmin=4594f30712f4fabaff6997416810f3f2" title="What is Retail Exchange?">What is Retail Exchange?</a></li>

    Works fine in FF but not IE, anyone have any ideas as to why not?

    Thanks for your help!
    • CommentAuthorjohnsmith22
    • CommentTimeApr 18th 2006 edited
     permalink
    Hi,

    If you remove the greater-than sign between ".current" and "a" (i.e. to make it "#subnav .current a{") then it should work in both browsers. In fact, the greater than sign is not required at all in this context because ".current a" has the same meaning. The reason why it doesn't work in IE is because the browser doesn't understand rules which include greater than signs, and so it ignores the whole rule.

    Hope this helps
    • CommentAuthormumford
    • CommentTimeApr 19th 2006
     permalink
    Hi

    Thanks for the response, I have taken the > out but the submenus still dont stay on blue once you have clicked on it.

    Here is an example of one of the submenus nav item

    <li <% If Request.ServerVariables("URL") = "/about.asp" Then Response.Write("current") End If %>"><a href="about.asp?phpMyAdmin=4594f30712f4fabaff6997416810f3f2" title="What is Retail Exchange?">What is Retail Exchange?</a></li>

    Any idea why it is still not working?
    •  
      CommentAuthorJohnRiv
    • CommentTimeApr 19th 2006
     permalink
    The problem with the link color not staying blue is only occurring when you hover over the link, so the fix is just to add that :hover state style, like so:

    #subnav .current a, #subnav .current a:hover {
    color:#91CEF4;
    display:block;
    }

    Also, did you notice you include your css/master.css file twice? It's in there once with media="all" set and once with no media setting. You only need to declare it once.
    • CommentAuthormumford
    • CommentTimeApr 19th 2006
     permalink
    Its still not working could you take a look at this please http://www.clientpreview.co.uk/re/april/about.asp

    Thanks for the help
  1.  permalink
    That's because none of the submenu items are marked as ".current". You might want to have a look at your ASP code - it looks as though the code will only work if about.asp is at the root of the domain name (i.e. www.clientpreview.co.uk/about.asp). As you've place it inside folders two levels deep, you'll have to change <% If Request.ServerVariables("URL") = "/about.asp" Then Response.Write("current") End If %> to <% If Request.ServerVariables("URL") = "/re/april/about.asp" Then Response.Write("current") End If %> (URL part is changed). This should then work well. Also, I can see that there is some unparsed PHP code in your HTML - you might want to have a look at that as well.
    • CommentAuthormumford
    • CommentTimeApr 20th 2006
     permalink
    You are a star, at last it has been solved thank you so much!

    The guy who has coded this in asp has not done a good job!
  2.  permalink
    No probs, glad I could help. Remember to check the ASP URL when you make the site live if you are going to change its URL :)
Add your comments
    Username Password
  • Format comments as (Help)