Close

How to add a border to image

Jowins
7 years ago
#13262 Quote
Avatar
  • 1
Hi,
I would like to add a border to the all the images shown in the theme as well through the plugins.  So any image in the site will have a border. I tried  to change in the css but it is not reflected though some other changes like some animation is working. Might be something else overriding it? Any help is much appreciated.
hristo
7 years ago
#13263 Quote
Avatar
  • Moderator
  • 172
Jowins wrote:
Hi,
I would like to add a border to the all the images shown in the theme as well through the plugins.  So any image in the site will have a border. I tried  to change in the css but it is not reflected though some other changes like some animation is working. Might be something else overriding it? Any help is much appreciated.


Hello,
you can add a global css rule together with "!important" rule, like this:

img {
    border: 1px solid black !important;
}

Add this either to your main css file (styles.css) or in the custom head styles panel in your administration.

If you have any further questions, please open a support ticket instead of writing in the forum.

Regards
Regards,
Hristo Gospodinov
Nop-Templates.com