WordPress.org

Ready to get started?Download WordPress

Forums

unnecessary modification of image width in img_caption_shortcode (2 posts)

  1. rbreuss
    Member
    Posted 3 years ago #

    There is an unnecessary addition of 10 pixels
    in file: wp-includes/media.php
    in function: img_caption_shortcode
    which causes troubles using css to force right alignment of images.
    Because image thumnails of width=150 resides in a div of width=160 (10 + image width).
    I think you should remove this addition of 10 pixels in a future version of worpress.
    thx
    rbreuss

  2. thanatica2
    Member
    Posted 3 years ago #

    Second.

    Putting the width in an inline style is rediculous, or just silly at least. Inline styles are hard to override, and this particular style does absolutely nothing that cannot be done with proper styling.

    Simply giving the image it contains a display:block and 5px of margin on either side, will produce exactly the same effect in proper CSS that does not need to be generated by an unmodifyable hardcoded blackbox ;)

Topic Closed

This topic has been closed to new replies.

About this Topic