Default Captions Should Use max-width
Reported by: Howdy_McGee Owned by: joemcgill
Milestone: 4.9 Priority: normal
Severity: normal Version: 4.3.1
Component: Media Keywords: has-patch has-unit-tests commit
Focuses: ui
Description
HTML5 Captions should really be using max-width: image-size + px rather than a static width. It’s widely supported and more mobile friendly than the default width style.
<figure id="attachment_116" style="max-width: 400px;" class="wp-caption alignright">
<img src="image.jpg" alt="redraw" width="400" height="365" />
<figcaption class="wp-caption-text">Phasellus nec sem in justo pellentesque facilisis.</figcaption>
</figure>
]]>
https://www.ads-software.com/support/forum/how-to-and-troubleshooting
This post has been moved out for you.
@manvantara777 – next time just put in a link to the ticket ?? https://core.trac.www.ads-software.com/ticket/33981
]]>EngineeringSpot.de
]]>Still same issue despite new 4.9.1.
??
Manually changing images because it’s too disruptive.
]]>Manually changing is not an option on a blog with next to 700 articles.
]]>@media (max-width: 988px){
.wp-caption {
/* Force the box to be 100% */
width: 100% !important;
}
#content .wp-caption a img {
/* Scale down if too big */
max-width: 99.03225806%; /* 614/620 */
height: auto;
}
}
Cheers!
]]>