Opened 9 months ago
Closed 9 months ago
#21530 closed defect (bug) (fixed)
Twenty Twelve: Wrong alignment of image captions on attachment pages
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | lancewillett, drewstrojny |
Description
When in attachment view, styles to center the image caption get overridden by .entry-content p styles, which aligns the caption left.
Attachments (1)
Change History (4)
comment:1
SergeyBiryukov — 9 months ago
- Milestone changed from Awaiting Review to 3.5
comment:2
lancewillett — 9 months ago
comment:3
lancewillett — 9 months ago
- Owner set to lancewillett
- Resolution set to fixed
- Status changed from new to closed
In [21518]:
Note: See
TracTickets for help on using
tickets.

Thanks for the report, patch isn't exactly right since the container needs to have the alignment also, to center images that aren't full width.
The fix adds a new rule just for the paragraph element, forcing it to be centered.