[Support request] Remove image border from certain images

Home Forums Support [Support request] Remove image border from certain images

Home Forums Support Remove image border from certain images

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1673970
    Jan

    Hi Generatepress support team,

    I added the following CSS code to my website, to add a border to images.

    }
    .wp-block-image img {
    border: 1px solid #CCC;
    }

    What is the CSS code that I need to remove the border from certain images, using Additional CSS class?

    Thanks a lot,

    Jan

    #1674118
    Ying
    Staff
    Customer Support

    Hi Jan,

    If you want to remove border for specific images, select the image in page editor, give it a custom css class, for example: no-border.
    https://www.screencast.com/t/iurAAT2F5

    Then add this CSS:

    .no-border img {
        border: none;
    }

    Let me know ๐Ÿ™‚

    #1674735
    Jan

    Yes perfect, thanks a lot!

    #1675300
    Ying
    Staff
    Customer Support

    You are welcome ๐Ÿ™‚

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