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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:59:46+00:00 2026-05-27T07:59:46+00:00

As the title shows, is it possible to name several elements and apply the

  • 0

As the title shows, is it possible to name several elements and apply the same :hover command to them all.

So I don’t have to do this:

#test:hover > .info, #test2:hover > .info {} 
  • 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-05-27T07:59:46+00:00Added an answer on May 27, 2026 at 7:59 am

    You could make a class and apply it to those elements. For example:

    <head>
        <style type="text/css">
            .myClass:hover > .info {
                background-color: blue;
            }
        </style>
    </head>
    
    <body>
        <a href="#" id="test" class="myClass">Test Link One</a>
        <span id="test2" class="myClass">Test Link Two</span>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The title attribute didn't shows. If you have a tip using another attribute type,
I am trying to show only elements that have the title attribute passed to
I used the latest sIFR version, and for some reason it shows the title
My app shows a list of items, where each line is an item title
The Html.ActionLink <li> ${Html.ActionLink<HomeController>(c => c.Edit(ViewData.Model.Id, ViewData.Model.Title), Edit)} </li> When created as html shows
By default in all browsers, title attributes only show on mouse over. I want
<a id=lblShowTimings runat=server title='<%# Eval(SHOW_Name) %>' onclick='PopulateTicketDiv(<%#Eval(SHOW_ID) %>)'> <-- this is the problem %#Eval(SHOW_Time)
I have a header/title bar that isn't resizing the way I want it to.
Can CSS be used to change the title attribute in this img tag to
Possible Duplicate: Making sure a web page is not cached, across all browsers I

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.