WordPress.org

Ready to get started?Download WordPress

Forums

PB Responsive Images
styling resized images (2 posts)

  1. verityweb
    Member
    Posted 1 year ago #

    Since the images are being re-written, they don't inherit the selectors or styles from the original image. Therefore, image have no margins and are too close to text, especially right and left aligned images. How can I fix that?

    http://wordpress.org/extend/plugins/pb-responsive-images/

  2. Jacob Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    The css classes from the original image are instead applied to the wrapping span. Make it so your selectors are no longer img specific, but instead specific to an img inside that selector, and you'll be good to go.

    In retrospect, applying those classes to the generated image would not have been too difficult and probably would not have broken anything, but I was attempting to replicate the proposed standard - a bit too vigorously, it seems. I'd add it as an update, but it would be a breaking change at this point. I may add it as an optional toggle in the admin later on.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.