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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:27:34+00:00 2026-06-13T19:27:34+00:00

When using the pseudo selector :hover, the color changes (note big big style sheet,

  • 0

When using the pseudo selector :hover, the color changes (note big big style sheet, it is not however been overwritten); but when I apply it to the anchor tag itself it does not apply.

CSS:

#testimonialContent {
    width:640px;
    position: relative;
    height: auto;
    padding-top: 15px;
    font-size: 18px;
    font-family: Gotham-Book, Arial;
    color: #4d4d4f;
    *padding-top: 0;
}
#testimonialContent span {
    width: 600px;
    letter-spacing: -1px;
    letter-spacing: 0px\9;
    float: right;
    margin-top: -3px;
    *margin-top: -30px;

}

#testimonialContent span strong {
    position: relative;
    letter-spacing: 0px;
    display: block;
    top: 8px;
    font-size: 14px;
}
#testimonialContent a{
    font-size: 12px;
    letter-spacing: 0px;
    position: relative;
    color: #86a53e;
    margin-top: -10px;
    float: right;   
}
#testimonialContent a:hover{
    color: red;
}

HTML:

<div id="testimonialContent">
    <br /><br /><br /><br /><br /><img id="quoteOne" src="http://www.qwertyuiop.co.uk/wp-content/themes/designworks2012/images/quote1.png">
    <span><?php
        query_posts(array(
            'cat' => 39,
            'order' => 'ASC', // ASCEND
            'orderby' => 'rand',
            'showposts' => 1,
            ));
        $wp_query->is_archive = true; $wp_query->is_home = false;
        if (have_posts()) : while (have_posts()) : the_post();
        the_content();
        endwhile; endif;


    ?>
    <a href="#" id="nextQ">NEXT QUOTE</a>
    </span>
    <script>
        var str = $('#testimonialContent').html();
        var x = str.replace("<p>","");
        $('#testimonialContent').html(x);
        var x = str.replace("</p>","");
        $('#testimonialContent').html(x);
    </script>
</div> <!-- end testimonialContent -->

As I say, it is not being overwritten somewhere down the stylesheet. (placed it at the bottom).

EDIT:

I have a link, this link is displaying black however the css color: #86a53e; should target it. It does not. However the pseudo selector is targeting the anchor whereas the normal anchor is not. It will hover red but display black. It should not be black.

  • 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-13T19:27:35+00:00Added an answer on June 13, 2026 at 7:27 pm

    That’s because you’re aplyying the exact same color that It had before the :hover:

    #testimonialContent a{
    ...
    color: #86a53e;
    ...
    }
    
    #testimonialContent a:hover{
    **color: #86a53e;**
    }
    

    If you change the second, you’ll notice the behaviour you want.

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

Sidebar

Related Questions

I am using simple pseudo-selector css functionlity. When I hover over my table-cells, they
I'm looking for a method to inspect elements styled using pseudo-classes (such as :hover
I want to combine :after with :hover in CSS (or any other pseudo selector).
I'm attempting to add a custom pseudo-selector to jQuery, currently using v1.8.0, based on
I know how to create a SEL at compile time using @selector(MyMethodName:) but what
I am using pseudo-code here, but this is in JavaScript. With the most efficient
i cant seem to make the :hover pseudo selector work on a Select element
I have written my own hadoop program and I can run using pseudo distribute
I can drop a SqlServer Backup Device using SQL-DMO using the following pseudo-code: SQLDMO.SQLServer2
I'm using the ▼ character as the content of my pseudo element: a:after {

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.