Ready to get started?Download WordPress


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

  1. allegra1212
    Posted 6 months 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 6 months 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


You must log in to post.

About this Plugin

About this Topic


No tags yet.