PB Responsive Images
styling resized images (2 posts)

  1. verityweb
    Posted 3 years 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?


  2. Jacob Dunn
    Plugin Author

    Posted 3 years 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

  • PB Responsive Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.