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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:50:06+00:00 2026-06-01T17:50:06+00:00

I have a list element with div content inside and an a tag wrapping

  • 0

I have a list element with div content inside and an a tag wrapping the div content. Example code:

<li>
  <a href="http://google.com/">
    <div id="tease-info">
      <div class="inset-img-border fade"></div>
      <img src="/img/img.jpg">
      <div id="arrow-right-small"></div>
      <h4 class="title">E-mail Marketing</h4>
      <p class="title">Messaging That Pays</p>
    </div>
  </a>
</li>

In my style sheet, I have a hover being applied to ‘tease-info’ for interior content. Like so:

  #tease-info:hover h4{
    color: rgb(191,69,164);
  }

The problem comes only in ios. On my ipad, when I tap the li element, I get that grey overlay native to ios, letting you know the element your selecting. I also get the hover state. However, when I release, I am not taken to the href and the hover state remains enabled.

It seems like the hover state is over-ruling the a tag? What is happening?

  • 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-01T17:50:08+00:00Added an answer on June 1, 2026 at 5:50 pm

    ok i have a fix now. To start with im using Modernizr, and i read a technique which suggested using the .touch and .no-touch class’s to fix the issue. this works pretty easily if your :hover event is expressed in CSS

    .ugcpost:hover .meta {display:block;} 
    .touch .ugcpost:hover .meta {display:none;}
    

    this solves the problem, just make sure you have the touch event in your Modernizr config. another more fleshed out option if you using JS to show and hide your hover, is to force page to follow the href with a single click. there is one issue to note though that you want to ensure your distinguishing between a true click and not a screen scroll. so please see the following JS, again using Modernizr, alough you code just check the client’s User agent.

    followPost : function(item) {
             $(item).on('touchend', function(e){
                    location.href = $(item).attr('href');
                    $(item).off('touchend');
                 });
                 $(item).on('touchmove', function(e){
                     $(item).off('touchend');
                 });
         },
         initTouchEnhancements : function() {
            $('.collection a, .post a, .ugcpost a').live('touchstart', function() {
                var item = this
            followPost(item);   
            });
         }
    

    NOTE: this also relies on the use of ‘on’ and ‘off’ functions in JQ 1.7. thanks to this post for identifying this.
    Stop the touchstart performing too quick when scrolling

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

Sidebar

Related Questions

OK, I have a list ( <ul> ) then inside each <li> element I
I have the following code <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <title>Untitled Document</title>
So I don't have to post too much code the page is: http://www.ketchikanvet.com .
I have a List where element is: struct element { double priority; int value;
I have a page with a list element attached. How do I determine the
I have a list of structs and I want to change one element. For
I have a list of lists that looks like this: x[[state]][[year]] . Each element
I have a rather large list of data that contains 5 properties per element.
I have an event handler that will remove an element from a list of
I have to search through a list and replace all occurrences of one element

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.