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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:51:41+00:00 2026-06-15T18:51:41+00:00

I am stuck on something that seems very simple but I must be missing

  • 0

I am stuck on something that seems very simple but I must be missing some minor detail.
I have this div:

<div id="menu" class="menu_div">
<a href="/">HOME</a> | 
<a href="/pics.php">PICTURES</a>
</div>

And the following inside the style tags

.menu_div {
    background-color: #FFFFFF;
    border:1px solid black;
    width: 900px;
    a:link {color:#000000; text-decoration:none;}      /* unvisited link */
    a:visited {color:#000000; text-decoration:none;}  /* visited link */
    a:hover {color:#FF0000; text-decoration:none;}  /* mouse over link */
    a:active {color:#FF0000; text-decoration:none;}  /* selected link */
}

Everything works except the links. I tried other combinations like .menu_div a:hover etc, nothing seems to work, any idea why?

Thanks

  • 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-15T18:51:43+00:00Added an answer on June 15, 2026 at 6:51 pm

    I don’t see any SASS or LESS tags, so here is the solution – you can’t have nested rules in CSS. You must define them separately:

    .menu_div {
        background-color: #FFFFFF;
        border:1px solid black;
        width: 900px;
    }
    
    .menu_div a:link {color:#000000; text-decoration:none;}      /* unvisited link */
    .menu_div a:visited {color:#000000; text-decoration:none;}   /* visited link */
    .menu_div a:hover {color:#FF0000; text-decoration:none;}     /* mouse over link */
    .menu_div a:active {color:#FF0000; text-decoration:none;}    /* selected link */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem seems to be very simple but I'm stuck here. I have a
I am stuck with something quite simple but really annoying: I have an xml
I'm starting to play with arrays, but i'm stuck with something that seems yet
I'm trying to pick up Lua programming but I'm stuck on something that's probably
I'm kinda stuck with something which must be appalingly simple. I'm trying to write
I think I have a basic understanding of REST, but something I'm stuck on
I'm stuck on a RegEx problem that's seemingly very simple and yet I can't
This is an attempt to discover a canonical answer for something that seems to
it's a couple of hours that I'm stuck on what apparently seems a very
I´ve been stuck on a minor jquery problem, it´s probably just something minor I´m

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.