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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:39:48+00:00 2026-05-24T05:39:48+00:00

I have a page with 5 sublinks having class searchBySub Now in my CSS

  • 0

I have a page with 5 sublinks having class “searchBySub”
Now in my CSS I have defined normal, hover states as well as a class for clicked
So we have

#leftNav .searchBySub {...}
#leftNav a.searchBySub:hover {...}
#leftNav .searchBySubClicked {...}

My Question is when any of these 5 sublinks is clicked on iPad, it goes to the hover state. So is there any way by which I can force it to not go in hover state rather apply the class searchBySubClicked

As the hover state is causing some issues…Please help me. Thank you.

  • 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-24T05:39:50+00:00Added an answer on May 24, 2026 at 5:39 am

    I agree with the media queries, but like so http://css-tricks.com/snippets/css/ipad-specific-css/

    @media only screen and (device-width: 768px) {
      /* For general iPad layouts */
    }
    

    You could try to undo the hover state in there. However the ideal supposedly is to create the mobile styles first and then create full screen browser styles afterwards within

    @media only screen and (min-width: 768px) {
      /* Style adjustments for viewports 768px and over go here */
        #leftNav a.searchBySub:hover {...}    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which has sublinks having CSS as; #leftNav .searchBySub {...} #leftNav
I have 5 sublinks which have 2 states; hover (CSS className: subLinks ) and
Imagine there are 5 sublinks (having class searchBySub ) and 5 corresponding buttons on
I have some sublinks for a page viewed on the iPad...Now when I click
I have a button and some sublinks for a page viewed on the iPad...Now
I have page which is redirected from htaccess. now I can pass the German
I have page like this ... <Page x:Class=WPFTestRig.Page1 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=Page1> <Grid> <StackPanel> <ComboBox
I have page which created dynamically. Now I want to add ajax function, so
I have Page model with GFK. class Page(models.Model): title = models.CharField(max_length=200) content_type = models.ForeignKey(ContentType,null=True,blank=True)
I have Page Tab App, which has a landing page with a Log In

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.