Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Padding around image

Home / Forums / Virtue Theme / Padding around image

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
April 2, 2021 at 11:39 pm

Hello,

On my website, the photos that I put in pages or posts are placed with an image border.
This despite the fact that I disabled this function in the theme options.

When I look at an image with the inspector function of Firefox, I see that a padding of 10px is used.
This looks like this:

[class * = “wp-image”] {
display: block;
padding: 10px;
margin: 0;
line-height: 20px;
border: 1px solid #ddd;
border-color: rgba (0,0,0, .05);
-webkit-border-radius: 0;
-moz-border-radius: 0;
border radius: 0;
-webkit-box-shadow: 0 1px 3px rgba (0,0,0, .055);
-moz-box-shadow: 0 1px 3px rgba (0,0,0, .055);
box-shadow: 0 1px 3px rgba (0,0,0, .055);
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

If I set the padding to 0px in the inspector, the image will also appear the way I like it.
But put this piece of custom code in the custom CSS box then it doesn’t work.

What piece of code should I put in the CSS box to remove padding around my images?

Thanks in advance.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.