Simple Image Widget
[resolved] Need border around image (2 posts)

  1. allegra1212
    Posted 2 years ago #


    I tried about everything but cannot find the way to add a border (and 4px padding) around images from image widget - great plugin by the way - just this border problem. I have a border in my theme css but for some reason it is not applied to the image widget.

    Please would you mind to let me know where I could add that?

    Thank you so much for your help :-)


  2. Brady Vercher
    Plugin Author

    Posted 2 years ago #

    Hi allegra1212, your theme's CSS is indeed where you would add the border. If you want to target images added using the widget, you would need to use this selector:

    .simple-image img {
        border: 1px solid #ff0000;

    If you want to add padding, you may need to apply your styles to the parent p p tag.

    - Brady

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Image Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.