[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 Dec 30 03:03:23 UTC 2011
#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 greenshady):
Here's a fix you can add to your themes:
http://svn.locallylost.com/themes/hybrid-core/trunk/extensions/cleaner-
caption.php
Replying to [comment:5 azaozz]:
> Seems many people dislike the width on that wrapper div. As far as I
remember it was added so captions can be centered. Haven't seen any
suggestions on what to replace it with or how to handle centered captions.
The problem is the additional 10px added to the width, not with having a
width.
Although, I wouldn't mind seeing some solutions for removing the width
altogether. What about using `<figure>`? I don't think you need a width
on it, but I haven't really tested it to see how well browsers handle it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17044#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list