Mobile browsers currently do not support hovering effects

I’m currently facing an issue with the hovering effect on a mobile browser. The hovering effect I have implemented shows text inside a circle only when hovered over by a mouse. However, this does not work on mobile browsers like iPhone. I need to find a solution to make these hovering effects work on mobile devices as well. Additionally, there is a similar hovering effect on a button that works fine. It seems like making the circles clickable might be the key to solving this problem. What steps should I take to address this issue?

Below is the HTML code for the circle:

    <ul class="circles">
      <li>
        <div class="item img-1-services">
          <div class="circle-info">
            <p class="service">text</p></div>
        </div>
        <h4>English classes</h4></div>
          </div>
        </div>
      </li>
      <li>
      </ul>

Here is my CSS:

 .item {
      width: 100%;
        height: 100%;
        border-radius: 50%;
        position: relative;
        box-shadow: 
            inset 0 0 0 16px rgba(255,255,255,0.6),
            0 1px 2px rgba(0,0,0,0.1);
      transition: all 0.4s ease-in-out;
      text-align: center;
      align-items: center;
      cursor: pointer;
    }
    .circles li {
      width: 320px;
      height: 320px;
      display: inline-block;
      margin: 20px;

    }

    .circle-info {
        position: absolute;
        background: rgba(0,0,0,0.7);
        width: inherit;
        height: inherit;
        border-radius: 50%; 
        transition: all 0.4s ease-in-out;
      transform: scale(0);
    }
    .item:hover {
        box-shadow: 
            inset 0 0 0 1px rgba(255,255,255,0.1),
        0 1px 2px rgba(0,0,0,0.1);
      cursor: pointer;
    }

    .item:hover .circle-info {
        transform: scale(1);
    }

This example showcases one circle, but I have a total of 7 circles each intended to display text upon hover.

Thank you in advance for any assistance provided.

Answer №1

It seems like your question is a bit unclear, please provide more details for better understanding. Assuming you are inquiring about displaying text on mouseover of a circle, the solution provided here might help resolve your issue.

Another important point to note is that there are some HTML markup errors in your code. Make sure to close the UL tag properly and remove any unnecessary closing divs to avoid unexpected errors.

.item {
  width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
box-shadow: 0 0 5px 10px rgba(0,0,0,1);
  transition: all 0.4s ease-in-out;
  text-align: center;
  align-items: center;
  cursor: pointer;
}
.circles li {
  width: 320px;
  height: 320px;
  display: inline-block;
  margin: 20px;

}

.item:hover {
    box-shadow: 0 0 5px 10px rgba(0,0,0,1);
  cursor: pointer;
}

#text{font-size: 26px!important;display:none}

.item:hover #text {
    display: inline-block;

}
<h4>English classes</h4>
  <ul class="circles">
      <li class='item'>
      <span id='text'>Text</span>
      </li>
</ul>

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

Challenges with resizing images in SVG using D3

I have an SVG image created using d3. I am facing an issue where the svg is extending beyond its parent div container. Here is the code snippet: <div id="test" style="{width: 500px; height:500px;}"> <svg></svg> </div> ...

Tips for creating consistent background text size

i need assistance creating a box for text that looks like this https://i.stack.imgur.com/JOC0r.png my CSS code for the box is as follows: .bg-text-kol2 { background-color: #ffffff; background-size: 10px 10px; border-top-left-radius: 10px; border ...

The z-index is not functioning properly in terms of layering correctly

Seeking advice on z-index... I'm experimenting with the code and trying to get my id="hidebar" to appear above the "content" and "content-inner" divs. Apologies if this is elementary, but I'm having some trouble =D CSS structure file: body { ...

What happens to the code that is situated *after* the closing of the HEAD tag and just before the opening of the BODY tag

I recently came across conflicting information regarding the placement of code between the HTML head and body tags. While it is considered bad practice and outside the spec, I have noticed an intermittent error in our complex code base that may be related ...

Guide on utilizing multiple ng-apps alongside multiple controllers

Having trouble accessing controller values in different ng-apps? Here's a setup with two ng-apps and their controllers, where you may encounter errors when trying to access the value of one controller in another. Need some assistance with this issue. ...

Tips for evenly distributing list elements in HTML without using whitespace

After reading the article on flexbox techniques without actually using flexbox, I attempted to implement "space-between" in my code: ul { margin: 0; padding: 0; text-align: justify; } ul:after { content: ""; display:inline-block; width:100%; ...

What is the best way to spin a div HTML layer?

I'm trying to modify a Div layer that looks like this: ... <style type="text/css"> <!-- #newImg { position:absolute; left:180px; top:99px; width:704px; height:387px; z-index:1; background-image:url(../Pictures/rep ...

Utilizing jQuery to clear out data sent through the $.post

I am currently working on developing a multi-part form that involves executing different scripts for each part. Each script checks for essential data and if this data is missing, it should return a string "false". While part 1 fails correctly by calling h ...

the side panel is positioned under the main content

Can anyone help me figure out why my sidebar is not positioning correctly next to the content on the right side? No matter what I try, it keeps going underneath the content. Here's the CSS code I'm using: body { font: 10pt Calibri, Helvetica ...

Final div class nested within the HTML and styled with CSS

Is there a way to keep the last div (class) from sliding underneath? I applied margin-right to .artist_wrap. I assumed that using overflow: hidden would contain it within #music_videos_wrap, but it just disappears. Any assistance is greatly appreciated. H ...

Having trouble switching tabs on Bootstrap 4.3 beyond the first tab?

I have integrated bootstrap tabs into my web app by following the documentation provided on the bootstrap website. While I have successfully achieved the fade animation for the first tab, I am facing issues with getting the other two tabs to function prop ...

I seem to be encountering a recurring issue with a jinja variable when trying to create an onclick function

Why do I keep encountering this error message: Uncaught SyntaxError: missing ) after argument list (at bestellen:60:105) This is the HTML code causing the issue: <div class="gerechten"> {% for gerecht in gerechten %} <div ...

Creating a Fractional Division Formula in HTML

My goal is to create code that displays various mathematical formulas. The formula I am focusing on right now is for the mean (average) and it currently looks like this: ∑n⁄n: <span class="frac"><sup>&sum;n</sup><span> ...

HTML5 text enhanced with a dynamic shadow effect

Struggling with adding a shadow effect to text in my front-end development project. Using HTML5, CSS3, bootstrap, and AngularJS for the design elements, I want to achieve a shadow effect similar to what you would see in Photoshop on a text field. Can anyo ...

SSL page on Wordpress struggles to load CSS files

My current website is on WordPress: The issue I am facing is on this particular page: , where the CSS is not loading correctly. This specific page uses SSL connection, and when checking through Firebug, I noticed that no CSS files are being sent. What co ...

Generate the hyperlinks with JavaScript

I have successfully implemented a boostrap 4 navbar, and I have a function that creates links. Is there a more efficient method to accomplish this using JavaScript? I currently have three functions that create links for each hyperlink. Would it be possib ...

problem with html tags

I've been attempting to customize an input field using inline styles, but I'm running into issues. Here's what I tried: <div class="row vh-md-100"> <div class="col-md-7 my-md-auto text-center text-md-left"> ...

Exploring Angular's Animation Feature for HTML Element Movement

I'm currently using @angular/animations module to animate HTML objects and I want to move an object when a button is clicked. For example: * The object initially has top: 800px, left: 800px * Clicking the 'W' button should move the obje ...

Background with funky Font Awesome colors

Font Awesome is working perfectly for me, but I'm experiencing an issue with strange borders appearing around the icons in Chrome. Interestingly, this problem doesn't occur in IE and Firefox browsers. What's even more peculiar is that the bo ...

CSS - Is there a way to alter the arrangement of DIVs depending on the size of the screen?

My inquiry pertains to a CSS layout. I currently have 3 divs positioned in a horizontal line next to each other, as depicted below... div1 div2 div3 I am aiming for the divs to reorganize themselves as the screen size decreases. In one scenario, they sho ...