Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1410670

    ourphn
    Participant

    Hi,

    I have used some css code to add a shadow to the images on this page http://www.ourphn.org.au/wordpress/promotional-publications/.

    However, when I add a hyperlink to the image (so it can link to a PDF), it moves my shadow from just around the image to the whole image box.

    How can I keep the shadow just around the image (like it is in the ‘Mental health road map’ image) but still link the image to something.

    The css code I am using is

    .x-img-none { box-shadow: 10px 10px 5px #888888; }

    Thank you

    #1410677

    ourphn
    Participant
    This reply has been marked as private.
    #1410994

    Jade
    Moderator

    Hi there,

    Please try this code instead:

    .x-img-none img {
        box-shadow: 10px 10px 5px #888888;
    }

    Hope this helps.

    #1421207

    ourphn
    Participant

    Yep, worked a treat. Thank you

    #1421275

    Paul R
    Moderator

    You’re welcome! 🙂