Site logo

[Resolved] .blog-post-content-wrapper img – Override?

Home Forums Support [Resolved] .blog-post-content-wrapper img – Override?

Home Forums Support .blog-post-content-wrapper img – Override?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2494579
    Paul

    Hi There,

    I’m using the CSS below to add a border radius to all images with posts – but since added I now need to give zero border to images that will exist within a GenerateBlocks local pattern (see link in private info) any ideas on how I can do that?

    /*Blog post content image styling */
    .blog-post-content-wrapper img {
    	 border-radius: 1.5rem;   
    	 margin-top: 0.5em;
    }

    Cheers

    #2494648
    Ying
    Staff
    Customer Support

    Hi Paul,

    Try this CSS:

    .blog-post-content-wrapper img:not(.gb-block-image img) {
        border-radius: 1.5rem;
        margin-top: 0.5em;
    }
    #2494744
    Paul

    Perfect thank you Ying! 🙂

    #2494768
    Ying
    Staff
    Customer Support

    No Problem, glad to help 🙂

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