mozilla

Compare Revisions

max-width

Change Revisions

Revision 318729:

Revision 318729 by teoli on

Revision 318739:

Revision 318739 by teoli on

Title:
max-width
max-width
Slug:
CSS/max-width
CSS/max-width
Tags:
"css", "NeedsMobileBrowserCompatibility", "CSS Reference"
"css", "NeedsMobileBrowserCompatibility", "CSS Reference"
Content:

Revision 318729
Revision 318739
nn16    <p>
17      {{ Cssxref("max-width") }} overrides width, but {{ Cssxref(
 >"min-width") }} overrides {{ Cssxref("max-width") }}.
18    </p>
n21        <dfn>Applies to</dfn> block level and replaced elements, n24        <dfn>Applies to</dfn> block level and replaced elements
>for <code>&lt;table&gt;</code> see {{ Anch("Browser compatibility 
>") }} below 
n131    <h2 id="Notes">n
132      Notes
133    </h2>
134    <p>
135      {{ Cssxref("max-width") }} overrides width, but {{ Cssxref(
>"min-width") }} overrides {{ Cssxref("max-width") }}. 
136    </p>
t140    <ul>t137    <table class="standard-table">
141      <li>138      <tbody>
142        <a class="external" href="http://www.w3.org/TR/CSS21/visu139        <tr>
>det.html#min-max-widths" title="http://www.w3.org/TR/CSS21/visude 
>t.html#min-max-widths">CSS 2.1 #min-max-widths</a> 
140          <th scope="col">
141            Specification
142          </th>
143          <th scope="col">
144            Status
145          </th>
146          <th scope="col">
147            Comment
148          </th>
143      </li>149        </tr>
150        <tr>
151          <td>
152            {{ SpecName('CSS3 Sizing', '#width-height-keywords', 
 >'max-width') }}
153          </td>
154          <td>
155            {{ Spec2('CSS3 Sizing') }}
156          </td>
157          <td>
158            Adds the <code>max-content</code>, <code>min-content<
 >/code>, <code>fit-content</code>, and <code>fill-available</code>
 > keywords.<br>
159            <em>Both CSS3 Box and CSS3 Writing Modes drafts defin
 >ed at some point these keywords. These drafts are superseded by t
 >his spec.</em>
160          </td>
161        </tr>
162        <tr>
163          <td>
164            {{ SpecName('CSS3 Transitions', '#animatable-css', 'm
 >ax-width') }}
165          </td>
166          <td>
167            {{ Spec2('CSS3 Transitions') }}
168          </td>
169          <td>
170            Defines <code>max-width</code> as animatable.
171          </td>
172        </tr>
173        <tr>
174          <td>
175            {{ SpecName('CSS2.1', 'visudet.html#min-max-heights',
 > 'max-width') }}
176          </td>
177          <td>
178            {{ Spec2('CSS2.1') }}
179          </td>
180          <td>
181            Initial definition.
182          </td>
183        </tr>
184      </tbody>
144    </ul>185    </table>

Back to History