[wp-trac] [WordPress Trac] #17044: div.wp-caption shortcode should have width of img, rather than add +10px
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 27 03:23:35 UTC 2012
#17044: div.wp-caption shortcode should have width of img, rather than add +10px
-------------------------------+------------------------------
Reporter: mgk25 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 3.1
Severity: normal | Resolution:
Keywords: close 2nd-opinion |
-------------------------------+------------------------------
Comment (by azaozz):
Replying to [comment:9 oncletom]:
> ... (which is there since 3.1, it means many themes did not have this
10px in mind BEFORE 3.1 – breaking things since this time does not seem to
be problematic though)
The extra 10px have been there since the introduction of image captions in
[http://wordpress.org/news/2008/07/wordpress-26-tyner/ 2.6], four years
ago :)
Still haven't seen a single case where removing these 10px would make
styling images with captions any easier/better, or even any different.
Removing the width completely will make it easier for floated images,
however there doesn't seem to be a straightforward way to center a caption
without it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17044#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list