Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS HELP! Image on iOS stretches when scrolling – something wrong with my HTML/CSS?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #241086
    AlanWilkes
    Participant

    Hi, i hope someone can help as i’m beginning to lose my mind!!

    I have a hamburger menu image that i’m using on my website, which once clicked it expands to show the menu. This all works fine across all browsers and devices. However, i’ve noticed that on an iPhone and iPad that if the image is clicked (and therefore the menu shown), if you then scroll down the page at this point, the hamburger image stretches and follows the scrolling – and i have no idea why. It only happens when the menu is open.

    Please can someone help to explain why and how to resolve. Its driving me crazy trying to figure it out.

    My HTML and CSS is below:

    <

    div>View our price guide

    #toppricearea
    {
    width: 15%;
    position: relative;
    z-index: 1;
    background-image: url(/get_images/buttons/quick_price.gif);
    }
    #toppricearea .priceimage
    {
    width: 75%;
    }

    #price_guide
    {
    z-index:800;
    display: none;
    background-color: #FFF;
    width: 200%;
    }

    http://codepen.io/anon/pen/NNOLEN

    #241098
    Senff
    Participant

    In your Codepen example, you should use an image that’s hosted somewhere on the web, not a local one, because now we can’t really see what the issue is.

    #241099
    AlanWilkes
    Participant

    Apologies, however it is just a flat image of a menu icon.

    Is there anything that you can see in the CSS/HTML etc that could be causing the issue?

    #241101
    Senff
    Participant

    I don’t see anything weird in the code right away, but then again, without actually seeing what the issue is, I’m not directly sure where to look.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.