Make WordPress Core

Changeset 42386


Ignore:
Timestamp:
12/11/2017 11:32:01 PM (7 years ago)
Author:
obenland
Message:

Twenty Ten: Use global img contraint for captions

Fixes an incompatibility with the way caption width is set since 4.9, where the caption element would cover the whole content width.

Props slilley, Clorith, hardeepasrani.
Fixes #42604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyten/style.css

    r42105 r42386  
    804804img.size-medium,
    805805.attachment img,
     806.entry-content img,
     807.wp-caption img,
    806808.widget-container img {
    807809    max-width: 100%; /* When images are too wide for containing element, force them to fit. */
     
    838840    line-height: 18px;
    839841    margin-bottom: 20px;
    840     max-width: 632px !important; /* prevent too-wide images from breaking layout */
    841842    padding: 4px;
    842843    text-align: center;
Note: See TracChangeset for help on using the changeset viewer.