Struggling with customization of CSS for a.class:hover in jQuery mobile

Currently, I am engaged in developing a project using the jquery mobile framework 1.0. My goal is to create a gradient background effect on the anchor defined below as .grid-anchor when users hover over it. However, despite my efforts, I have been unsuccessful in getting this feature to work properly with CSS :hover. It's important to note that this specific anchor does not utilize the jq mobile attribute data-role="button".

<div data-role="content">   

    <div id="ri-grid" class="ui-grid-c">
        <div class="ui-block-a">
            <a class="grid-anchor" href="#page2" data-transistion="slide">
                <div class="ui-bar rm-box border-br">
                    <ul>
                        <li>Sample text</li>
                        <li>more ttxt...</span></li>
                        <li><div class="icon-ir"></div></li>
                    </ul>
                </div>
            </a>
        </div>...</snip>

CSS:

a.grid-anchor:hover {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
}

*This code works specifically for Safari.

Answer â„–1

Considering mobile frameworks, is it practical to incorporate hover effects? Can such events be triggered on a mobile device or touch screen? It is advisable to avoid using hover effects and explore alternative events such as Mousedown or pointerdown.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What are the proper steps to ensure images are displayed correctly on mobile devices?

https://i.sstatic.net/M68Ob.jpg https://i.sstatic.net/fPKXr.jpg Our background image is 1920x1080p and looks great on desktop browsers, but it's not displaying properly on mobile devices in either portrait or landscape mode. Is there a way to resolv ...

When utilizing jQuery version 1.10.2, the HTML markup shows up prior to the page completing its loading process

I am trying to import one HTML page into another, but when I load or refresh the page, the HTML markup appears before the page fully loads. How can I fix this issue? <head> <script type="text/javascript" src="js/jquery-1.10.2.js" ></scr ...

What's the best way to make sure the footer stays at the bottom of every page using CSS?

Here's the code I've been working on: #footer { font-size: 10px; position:absolute; bottom:0; background:#ffffff; } I'm facing an issue with this code - can anyone offer some assistance? UPDATE: To clarify the issue further: T ...

Flexbox layout to achieve equal height columns with content centered

In search of a solution to create two columns with equal height and center-aligned content within each column, while also maintaining different widths. Issue: The challenge lies in achieving both 'equal height' and 'middle aligned' at ...

The menu bar fails to maintain its responsiveness once the breakpoint is reached

The issue I am facing is that the menu bar does not resize properly when the browser window size is less than 900px. This results in the bar being too wide, some content going off the screen, and a horizontal scrollbar appearing. I have been trying to tro ...

Is there a method to retrieve the subdirectories and files currently present on a given URL?

Picture having a file on your system with the following URL: I am curious if there is any software, command, or script that can retrieve subfolders/files based on a given URL. For instance: Input parameter: http://my.page/folder_1/ Output: http://my.p ...

Exploring the wonders of multer in a nodejs application

I am having trouble uploading a file from my webpage to a Node server. Although I can see that the form data is reaching the server's router, No file seems to be saved in the upload folder. What could I be doing wrong? //router section const expr ...

Custom control experiencing issues with vertical alignment

I am currently working on creating a basic filter bar that includes a custom control element. My intention is to align the element vertically, but so far, I have been unsuccessful. Below is the code for the filter bar: <div class="bg-light p-3 card"&g ...

Using jQuery to generate a JSON object dynamically based on the values entered in each input field

I'm facing a situation where I need to extract data from a JSON format using PHP. However, I'm struggling with how to structure the Javascript object in order to dynamically create the JSON format. Here is my current scenario: <input title=" ...

Adaptive design exhibits varying appearances across various screen sizes

Currently, I am working on a responsive design WordPress site and here is the markup: <div class="contact-wrap"> <div class="contact-number">123-456-7890</div><!--.contact-number--> <div class="user-login"><a href="#"& ...

A demonstration of the blur overlay effect using CSS and jQuery

Upon viewing this website, you will notice a unique blur overlay effect when scrolling down. Link to website I tried examining the source code in Chrome but was unable to pinpoint the specific CSS responsible for creating this effect. Can anyone provide ...

Eliminate the tiny space between the top of the webpage and the navigation bar

I've made several attempts to eliminate the gap between the navigation and the top by setting margin: 0; and border-box in various places to no avail. Strangely, I couldn't get the navigation bar to stick, so I had to resort to making the header ...

Concealing an element by using parentElement.getElementsByClassName to set the display property to none

I am attempting to hide a button that generates a new element upon being clicked (to then be replaced by a delete button), but I'm struggling to set the display property to "none" when trying to target the same element using parentElement and then ret ...

Turn off automatic spelling correction and predictive text in a content-editable section

I'm currently working on a cross-browser application using Script#. I've incorporated a contenteditable div where users can input text. However, I am facing an issue with the auto correct/auto completion feature altering the user's text. Co ...

Embed a Telegram account onto an HTML page using the <iframe> element

Is there a way to display the personal Telegram account in an iframe tag? I experimented with the code below, but unfortunately it did not produce the desired result: <iframe src="https://telegram.me/joinchat/BfNEij9CbDh03kwXacO5OA"></iframe> ...

How to conceal the dropdown arrow within a select tag using CSS when printing

Insert your HTML code here <select> <option value="mr"> Mr. </option> <option value="mrs"> Mrs. </option> </select> If I don't want the dropdown arrow to appear when printing the page, how can I hide it using ...

Concealing a Component Until User Input is Present

My main objective is to keep one of my div elements or all my p tags hidden until there is actual user input available. The code snippet below shows my attempt at achieving this goal through a method that changes the state of the div to true or false, and ...

Ignoring CSS transitions by changing the width property in JavaScript’s element.style

When attempting to create a smooth progress bar animation by adjusting the width using document.querySelector('#mydiv').style.width = '20%', I noticed that the new width is updated instantly rather than transitioning smoothly. It seems ...

A step-by-step guide on revealing a complete div upon selection

Can anyone assist me in showing a div with a form inside it whenever a specific option is selected from a tag? Here is the code I currently have: <script type="text/javascript"> $(function() { $('#contactOptionSelect&apo ...

What is the best way to extract user input from a bootstrap search bar and integrate it into an ajax request to fetch information?

I am currently utilizing HTML, Javascript, and bootstrap to develop a web application. However, I have encountered an obstacle. When using the code document.getElementById("input here"), it only returned an array of 0. My goal is to retrieve data from an A ...