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 8546805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:07:12+00:00 2026-06-11T13:07:12+00:00

Code: a:link { color: #111111; } a:visited { color: #1b3a57; } a:hover { color:

  • 0

Code:

a:link { color: #111111; }
a:visited { color: #1b3a57; } 
a:hover { color: #f3371c; }

I have heaps of links on my site. And these states are working fine with, for example, the Footer text (links) and general body links. But the main navigation links and sub header links do not change state.

I have tested in IE 5+, Chrome, Opera, Safari, Maxthon, and FireFox but I get the same result.

What could cause this type of behaviour?


Update:

Header code:

#Header {
    width: 100%;
    height: 120px;

    background-image: url('/Shared/Assets/Images/OrangeDot.png');
    background-position: center bottom;
    background-repeat: repeat-x;

}

    #Header #MainLogo {
        float: left;
    }

Sub Header code:

#SubHeader {
    width: 100%;
    height: max-content;
}
    #SubHeader ul {
        float: left;
        margin: 20px 0 0 0;
    }
        #SubHeader ul li img {
            line-height: 1.5em;
            margin: -.30em 0;
        }
        #SubHeader ul li {
            padding: 0 10px 0 10px;

        }
            #SubHeader ul li a {
                font-size: small;
                /*color: #f3371c;*/
            }

HTML Mark-up:

        <ul id="MainNavigation" class="HorizontalMenu WithBullets">
            <li><a class="HighlightedMenuOption" href="@Href("~/Home")">Home</a></li>
            <li><a href="@Href("~/Protected/Account/")">Sign In | Register</a></li>
            <li><a href="@Href("~/Shared/Support/")">Support</a></li>
            <li><a href="@Href("~/Shared/")">About Us</a></li>
            <li><a href="@Href("~/Shared/")">Contact Us</a></li>
        </ul>
    </div>
    <div id="SubHeader">
        <div id="categories" class="s_nav">
            <ul>
              <li id="menu_home"> <a href="@Href("~/Home")">Home</a> </li>
              <li> <a href="@Href("~/Shared/Products/")"></a>
                <div class="s_submenu">
                  <h3>Categories</h3>
                  <ul class="s_list_1 clearfix">
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                  </ul>
                  <span class="clear border_eee"></span>
                </div>
              </li>
              <li> <a href="@Href("~/Shared/Products/")"></a>
                <div class="s_submenu">
                  <h3>Categories</h3>
                  <ul class="s_list_1 clearfix">
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                  </ul>
                  <span class="clear border_eee"></span>

                </div>
              </li>
              <li><a href="@Href("~/Shared/Products/")"></a>
                <div class="s_submenu">
                  <h3>Categories</h3>
                  <ul class="s_list_1 clearfix">
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                  </ul>
                  <span class="clear border_eee"></span>
                </div>
              </li>
              <li><a href="@Href("~/Shared/Products/")"></a>
                <div class="s_submenu">
                  <h3>Categories</h3>
                  <ul class="s_list_1 clearfix">
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                  </ul>
                  <span class="clear border_eee"></span>
                </div>
              </li>
              <li><a href="@Href("~/Shared/Products/")">Tek Screws</a>
                <div class="s_submenu">
                  <h3>Categories</h3>
                  <ul class="s_list_1 clearfix">
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                    <li><a href="@Href("~/Shared/Products/")"></a></li>
                  </ul>
                  <span class="clear border_eee"></span>
                </div>
              </li>
            </ul>
          </div>
  • 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-06-11T13:07:13+00:00Added an answer on June 11, 2026 at 1:07 pm

    If your HTML does not have a DOCTYPE try adding it .(Might Work … !)

    As incorrect DOCTYPES lead to browser reverting to Quirks mode(IE) and CSS pseudo classes wont
    get along well with DOM in such scenario. For futher reading take a look at doctype and css relation as seen in alistapart.com

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

Sidebar

Related Questions

I have this code : button { } a:link, a:visited { text-decoration:none; color:red; }
I have some css code that shows a background color on hover. The text
I have this code: ie1.link(:text, /Exception:/) It is producing an error message which I
I have borrowed code from this link PHP regex templating - find all occurrences
When I have download sample code from this link and than try to build
I have a link inside a DIV. How can I change the color of
I use some code to turn urls into working links with php. But the
I'm trying to create a hover link using css but it's not working. Is
There are many css-samples for styling color of links. html5boilerplate.com offers such css code
If i have 5 links.When first if i click a link it has to

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.