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

  • Home
  • SEARCH
  • 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 6039635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:23:53+00:00 2026-05-23T06:23:53+00:00

i have problem with a:visited and a:link for 2 class/id. #title a:link, #title a:visited

  • 0

i have problem with a:visited and a:link for 2 class/id.

#title a:link, #title a:visited {
color:black;
}

#PageCounter a:link, #PageCounter a:visited {
color:green;
}

output:
all link of #title and #PageCounter are color black.

but i want #PageCounter all on color green.

i did tried test with “#title:visted” and “#title :visited” and “#title visited”… is not work. =/

(example)HTML format:

<div id="title"><a href="#">Hello World</a></div><br><br>
<font id="PageCounter"><a href="?page=x">1,2,3,4,5,6,7,....</a></font>
  • 1 1 Answer
  • 1 View
  • 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-23T06:23:54+00:00Added an answer on May 23, 2026 at 6:23 am

    Are the anchor tags direct descendants of the elements with the IDs ‘title’ and ‘PageCounter’? If so, you might want to use the child selector:

    #title > a:link, #title > a:visited {
        ...
    }
    #PageCounter > a:link, #PageCounter > a:visited {
        ...
    }
    

    The selectors you show in your question will affect any anchor elements within the elements identified by ‘title’ and ‘PageCounter’, regardless of how deeply nested they are. It might be possible that one of those selectors is ‘hiding’ the other. Using the child selector makes it more explicit.

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

Sidebar

Related Questions

I have a little problem with the visited pseudo-class and the text-shadow property in
I have problem to change the border color of the visited thumbnails using Galleriffic.
I have visited many places in order to solve this problem but not to
I have this class: .news_item_info { font-size: .7em; color:#000000; text-indent: 30px; a:link { color:
I spent around two hours on that problem, and I have visited these stackoverflow
I have problem SIMILAR to preventing form data reposting, but not quite the same
I'm having trouble solving this problem. I have to find all simple paths starting
I have this css: a:visited { text-decoration: none; decoration: none; } After a link
I have a problem with the online users list. The code works fine, all
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar

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.