Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #869571

    Hi,

    I am using the following CSS:

    .avia-image-container-inner {
    box-shadow: 0px 0px 20px #D9DCDE;
    }
    .avia-image-container-inner:hover {
    box-shadow: 0px 0px 10px #CACDCE;
    }

    However I would like to have the effect with the inner hover only if the image is linked to an URL (only when you can click on the image). Is this possible?
    Thank you in advance!
    Best,
    Anton

    #870259

    Hey tonydobrevski,
    Try:

    .avia-image-container-inner a {
    box-shadow: 0px 0px 20px #D9DCDE;
    }
    .avia-image-container-inner a:hover {
    box-shadow: 0px 0px 10px #CACDCE;
    }

    Best regards,
    Mike

    #870465

    Hi Mike,

    This works fine. However, when using this code, it only selects the images with the links. If I use the following code:
    .avia-image-container-inner {
    box-shadow: 0px 0px 20px #D9DCDE;
    }
    .avia-image-container-inner a:hover {
    box-shadow: 0px 0px 10px #CACDCE;
    }
    when I go with the mouse over the image, the shadow gets bigger and not smaller. Is there a way to use a code which is only for the images without links? The end goal is to have shadows on all the images and hove effect only on the ones with links. I guess the code will be something like that (but the first part should select only the images without links):
    .avia-image-container-inner {
    box-shadow: 0px 0px 20px #D9DCDE;
    }
    .avia-image-container-inner a {
    box-shadow: 0px 0px 20px #D9DCDE;
    }
    .avia-image-container-inner a:hover {
    box-shadow: 0px 0px 10px #CACDCE;
    }

    Thank you in advance!
    Best,
    Anton

    #871813

    Hi,

    Can we see the site with the code live and the exact area you have used it, so we can check the menu on hover effect please?

    Best regards,
    Basilis

    #871815

    Hi Basilis,

    Yes, you can log in to the site. See how in the private content.

    Best,
    Anton

    #872633

    Hi,
    To use the same effect on images without links try this:

    .avia-image-container-inner img {
    box-shadow: 0px 0px 20px #D9DCDE;
    }
    .avia-image-container-inner img:hover {
    box-shadow: 0px 0px 10px #CACDCE;
    }

    Best regards,
    Mike

    #872773

    Hi Mike,

    Thank you very much! Works perfectly! You can close the topic.

    Best,
    Anton

    #872786

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Image hover effect only when the image is linked to an URL’ is closed to new replies.