Opened 2 years ago
Closed 3 days ago
#52545 closed defect (bug) (worksforme)
Twenty Ten: Image block stretched
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | css | Cc: |
Description
In Twenty Ten, the image block stretches because it's not constraining the image height, just the width. See attached screenshot.
Attachments (3)
Change History (5)
#2
@
3 days ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
This seems to work now, with the editor's block-library
styles:
/* theme.css */ .wp-block-image { margin: 0 0 1em; } /* style.css */ .wp-block-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
Note: See
TracTickets for help on using
tickets.
Add height:auto to image block, and remove the left/right margin being inherited by browser defaults so image bocks can be full-width.