Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6873673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:05:54+00:00 2026-05-27T04:05:54+00:00

I have a list menu in Asp.net MVC Razor engine Masterpage. While trying some

  • 0

I have a list menu in Asp.net MVC Razor engine Masterpage. While trying some CSS on the menu, i see that the a:active property doesn’t work as it should. I have cross check for reference on w3schools but still can’t figure it out.

Following is the HTML on master page :-

<div class="nav">
   <ul>
      <li><a href="/Store/Electronics">Electronics</a></li>
      <li><a href="/Store/Computers">Computers</a></li>
      <li><a href="/Store/Clothings">Clothing And Accressories</a></li>
      <li><a href="/Store/Office">Office</a></li>
      <li><a href="/Store/Sports">Sports</a></li>
   </ul>
</div>

Here’s the CSS code :-

.nav ul li a:link { text-decoration:none; color:#3C7777; font-weight:bold; }
.nav ul li a:visited { text-decoration:none; color:#3C7777; } 
.nav ul li a:hover { text-decoration: underline; color: #B5B5B5; }
.nav ul li a:active { text-decoration:none; color:#B5B5B5; }

Question :- The selected link is not show in the correct color, #B5B5B5, Why ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:05:55+00:00Added an answer on May 27, 2026 at 4:05 am

    Just to make sure you’re not missing something – The :active pseudo-class only applies while you are clicking the link, and holding down the mouse button. It will not work after a page reload. (Just making sure, as it’s a common mistake to make)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently, I was trying to prototype some jQuery-based menu into ASP.NET MVC. Just to
I have an ASP.NET MVC page that has left Menu Navigation that is built
I'm having some trouble figuring this out. I have an unordered list menu that
I have an asp.net webpage with a drop down menu that is populated by
I have a list of asp.net menu items: <asp:Menu ID=Menu1 runat=server OnLoad=Menu1_Load> <Items> <asp:MenuItem
I have a ul list that I display as a horizontal menu. I'd like
I have a (derived) Menu control, that displays a rather large list of items
I am playing around with AJAX functionality using ASP.NET MVC. I have created a
I have the following html in my ASP.NET form. It represents a dropdown menu
Hi I am developing a simple application based upon ASP.NET MVC. I have altered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.