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.
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 😉
Viewing 1 replies (of 1 total)
The topic ‘unnecessary modification of image width in img_caption_shortcode’ is closed to new replies.