Forums

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

Home Forums CSS Background size causing bg images to flicker

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #188957
    booRocket
    Participant

    First post here, so I’m sorry if I don’t get it right.

    I’m using background-size: cover; to resize backgrounds to fit different sized styled links.

    However, when I hover over these, the background images seem to stretch or resize just slightly, making it look they are flickering. If I remove background-size: cover, the flickering goes, but they don’t fit they way I would like them to.

    Perhaps all the content inside these links is causing the issue?

    This is the site: http://paulwcarpenter.co.uk/

    It’s most noticable if you scroll down to the pink strange-makeup picture.

    #188960
    booRocket
    Participant

    Just read ‘Tips’. Sorry. I will try and recreate in Codepen tomorrow.

    #188961
    shaneisme
    Participant

    Also what browser / OS?

    #188989
    booRocket
    Participant

    Windows, and I realise it’s only Chrome that’s affected. I can’t seem to replicate the issue on Codepen – maybe I’ll just have to live with it for now.

    #188990
    shaneisme
    Participant

    I’m actually not seeing it on my end…

    But if it’s not happening on Codepen, that means something else within the site is causing the problem (maybe?).

    #188991
    booRocket
    Participant

    Thanks for your help – it’s good to know you can’t see it!

    The code is all a bit complicated – mainly because the images come from WordPress posts and are pulled in these boxes, and then there’s the content inside them with the stuff for the hovers, so it’s quite hard to see what’s causing it. But when I remove background-size: cover, it stops, but I guess that doesn’t necessarily mean it’s the cause.

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