Site logo

[Resolved] Shadow behind featured image and buttons

Home Forums Support [Resolved] Shadow behind featured image and buttons

Home Forums Support Shadow behind featured image and buttons

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2538430
    Manpreet

    Hi there,
    I want to add rounded corners and shadow to the featured image and buttons. Provide me with the CSS code for it.

    #2538582
    David
    Staff
    Customer Support

    Hi there,

    please provide us with a link to a post / page on your site where you want this to be applied. And we will be pleased to provide you with some CSS code for it.

    thank you.

    #2539199
    Manpreet
    #2539203
    Manpreet

    Also, how can I increase the gap between the image and the paragraph on a blog post?
    https://animefirm.com/top-5-isekai-anime-in-january-2023/

    #2539286
    Fernando
    Customer Support

    Hi Manpreet,

    Try adding this through Appearance > Customize > Additional CSS:

    .content-area .inside-article .post-image img {
        border-radius: 24px;
        box-shadow: 10px 5px 5px #444;
    }
    
    .content-area .inside-article .read-more-container a {
        border-radius: 16px;
        box-shadow: 10px 5px 5px #444;
    }
    
    .single-post .wp-block-image {
        margin-bottom: 16px;
    }

    Change the values to your preference.

    #2539308
    Manpreet

    Can you also provide me CSS code for the shadow from all sides behind the featured image and button?

    #2539313
    Fernando
    Customer Support

    I updated the code above. You can refer to this for assistance with regards to box-shadows: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow

    #2539314
    Manpreet

    Using the above code, the shadow is shown from two sides (right and bottom). I want to show from all sides of image and button.

    #2539346
    Fernando
    Customer Support

    Try this one:

    .content-area .inside-article .post-image img {
        border-radius: 24px;
        box-shadow: 0px 0px 16px #444;
    }
    
    .content-area .inside-article .read-more-container a {
        border-radius: 16px;
        box-shadow: 0px 0px 16px #444;
    }
    
    .single-post .wp-block-image {
        margin-bottom: 16px;
    }

    Alter the values to your liking.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.