WordPress.org

Ready to get started?Download WordPress

Forums

Image Widget
Border (2 posts)

  1. smcnutt
    Member
    Posted 1 year ago #

    There may be a better procedure for this, but after perusing various posts and seeing no answers, I figured that I'd post my 'fix' here. When I pull up the source of the rendered page, the widget gives the images a class related to their alignment (helpful). So for me the code on the page looks like this since I have them aligned right:

    <img src="someIMG.jpg" style="max-width: 150px;max-height: 150px;" class="alignright" alt="someIMG" />

    I then go into the style.css for my theme and find the style that I want to replicate, in this case the one used by 'post-image' and I add the class to the list like so:

    .alignright,
    .avatar,
    .post-image {
    	background-color: #f5f5f5;
    	border: 1px solid #ddd;
    	padding: 4px;
    }

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

  2. lebedeya
    Member
    Posted 1 year ago #

    . AlignRight,
    . Аватар,
    . Пост-образ {
    фонового цвета: # f5f5f5;
    границы: 1px твердых # DDD;
    обивка: 4px;
    }http://wordpress.org/extend/plugins/image-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic