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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:57:50+00:00 2026-06-04T07:57:50+00:00

Is it possible to do it just with CSS? Every new :target seems to

  • 0

Is it possible to do it just with CSS? Every new :target seems to change the URI (.html#my target name comes here) and naturally that messes / resets the other previous behavior.

If only there would be a way to assign other :target to be “silent” or “invisible”, so that it doesn’t affect the URI and both :targets could function on their separate rights. Or would this defeat the whole purpose of this selector?

  • 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-04T07:57:50+00:00Added an answer on June 4, 2026 at 7:57 am

    In a conforming HTML page, there can only ever be one :target element at a time.

    The moment you navigate to another target, the hash fragment in the URI changes, making the previous one history (no pun intended) and no longer relevant to the URI. In the same way, :target will no longer apply to whichever element previously was the target element.

    So, indeed, the behavior you’re trying to achieve would defeat the purpose of the :target selector for HTML documents. There is currently no way to continue applying styles to it based on such behavior using only CSS.

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

Sidebar

Related Questions

I am new at CSS and just wondering if it is possible to have
Possible Duplicate: Size in CSS with slash I just saw some CSS code like
I just wonder if it is possible to only use CSS but not javascript
<form><input type=file name=first onchange=jsFunction(2);> <input type=file name=second onchange=jsFunction(3);</form> Possible to pass just numbers to
I just wonder if that's possible to use Xcode's version control to connect to
Possible Duplicate: What's the point of valid CSS/HTML? This is a over-asked question, but
Possible Duplicate: How to loop a css background image with Jquery every few seconds?
Is it possible with just CSS to have a white background color and then
Hello guys. I think it isn't possible just using PHP, but just to be
This may not be possible but just wanted to see if anyone could point

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.