WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. allegra1212
    Member
    Posted 6 months ago #

    Hello

    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 :-)

    http://wordpress.org/plugins/simple-image-widget/

  2. Brady Vercher
    Member
    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.