Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1373039

    Hi there,

    I would like to add padding around an image when I add the Media Element>”Image” to the builder.

    I only want it to be for this particular image, and not for all images on the site.

    For the life of me I cannot figure out how, although I understand how to add padding to all images on the site. I tried to Google and search in the forum too.

    Could you help me please? Sorry to bother!

    Thank you!

    #1373097

    Hey daineax,

    You can add a custom class or ID in the element option, go to Advanced->Developer Settings. Your class will be added to the container element, so if you are looking to target the image, your CSS would look like this:

    .image-class img {
      padding: 10px;
    }

    Best regards,
    Rikard

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