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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:19:50+00:00 2026-06-09T12:19:50+00:00

I have this code, please observe this fiddle: http://jsfiddle.net/VjhJ4/19/ When you hover over the

  • 0

I have this code, please observe this fiddle:
http://jsfiddle.net/VjhJ4/19/

When you hover over the words, the text color changes to white – which is how I want it. However, when hovering over the 20px border-bottom, the text color does not change to white. Just hover your mouse over the border-bottom and check.

How do I make so that the text color changes to white when you hover the bottom as well? I currently have hover settings on ul#secondary-menu a:hover { color: #FFFFFF;}

  • 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-09T12:19:52+00:00Added an answer on June 9, 2026 at 12:19 pm

    Just add (or amend your existing CSS to include) the following:

    #second-menu ul.nav li:hover a {
        color: #fff;
    }​
    

    JS Fiddle demo.

    Can you explain why it was not changing the hover previously and how this helped. As I mentioned, my coding knowledge is limited so I am trying to learn what the issue was here

    It wasn’t changing the hover effects previously because you’d, presumably (and I am presuming, I gave up reading your CSS less than half-way through), specified a :hover rule for the a element that was a child of the li element, but the border is attached to the li, not the a. So hovering over the li‘s border had no effect.

    This rule simply specifies that the colour of the a element within the li should be white (#fff) in response to the mouse hovering over the li element. In practice, placing this rule at the end of the stylesheet caused it to override any other conflicting rules that might have been declared elsewhere (and, once again, I gave up reading the stylesheet due to its length).

    I’d recommend finding whatever rule you have that defines the a:hover effects, and add the two rules together, for example:

    #second-menu ul.nav li a:hover,
    #second-menu ul.nav li:hover a {
        color: #fff;
    }
    

    The specificity may not need to be quite so high, so you might be able to reduce the selector, to something shorter like:

    ul.nav li a:hover,
    ul.nav li:hover a {
        color: #fff;
    }
    

    Oh, and it’s worth noting that you have quite a mix of in-line (style="...") and external styles (using a stylesheet); try and use only the external form, for clarity and for ease of updating, editing and maintaining.

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

Sidebar

Related Questions

Please observe this stylesheet: http://jsfiddle.net/VjhJ4/12/ If you hover your mouse over the anchored menu,
Could anyone please help me convert this code to vb.net, I have tried it
I have this code if (IsValid(textBox.Text)) { toolTip.Hide(textBox); } else { toolTip.Show(Please enter an
i have this quick issue please. I have this code here which permits me
i have this simple question please. I have this part of code which sets
Please have a look at the following machine code ‎0111001101110100011100100110010101110011011100110110010101100100 This means something. I
I have a line of php code that looks like this: echo <script>$('#edit_errors').html('<h3><em>Please Correct
I have this code, int firstNum; int secondNum; char operator; NSLog(@Please enter the first
PLEASE NOTE: This is a CODE QUESTION NOT AN SYSTEM MANIPULATION ONE. I have
Why does this happen? Please observe the following code: static class StringExtension { public

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.