diff options
Diffstat (limited to 'files/ca/web/css/max-height')
| -rw-r--r-- | files/ca/web/css/max-height/index.html | 223 |
1 files changed, 0 insertions, 223 deletions
diff --git a/files/ca/web/css/max-height/index.html b/files/ca/web/css/max-height/index.html deleted file mode 100644 index 4519f68245..0000000000 --- a/files/ca/web/css/max-height/index.html +++ /dev/null @@ -1,223 +0,0 @@ ---- -title: max-height -slug: Web/CSS/max-height -tags: - - CSS - - CSS Property - - NeedsMobileBrowserCompatibility - - Reference -translation_of: Web/CSS/max-height ---- -<div>{{CSSRef}}</div> - -<p>La propietat <a href="/en-US/docs/CSS">CSS</a> <strong><code>max-height</code></strong> estableix l'alçada màxima d'un element. Impedeix que el <a href="/en-US/docs/Web/CSS/used_value">valor utilitzat</a> per la propietat {{ Cssxref("height") }} sigui més gran que el valor especificat per <code>max-height</code>.</p> - -<pre class="brush:css no-line-numbers">/* <length> value */ -max-height: 3.5em; - -/* <percentage> value */ -max-height: 75%; - -/* Keyword values */ -max-height: none; -max-height: max-content; -max-height: min-content; -max-height: fit-content; -max-height: fill-available; - -/* Global values */ -max-height: inherit; -max-height: initial; -max-height: unset; -</pre> - -<p>{{ Cssxref("max-height") }} anul·la {{cssxref("height")}}, <span id="result_box" lang="ca"><span>però</span></span> {{ Cssxref("min-height") }} anul·la {{ Cssxref("max-height") }}.</p> - -<p>{{cssinfo}}</p> - -<h2 id="Syntax" name="Syntax">Sintaxi</h2> - -<h3 id="Values" name="Values">Valors</h3> - -<dl> - <dt>{{cssxref("<length>")}}</dt> - <dd><span id="result_box" lang="ca"><span>L'alçada màxima, expressada com</span></span> {{cssxref("<length>")}}.</dd> - <dt>{{cssxref("<percentage>")}}</dt> - <dd>L'alçada màxima, expressada com {{cssxref("<percentage>")}} de l'alçada del bloc contenidor. Si l'alçada del bloc contenidor no s'especifica explícitament, el valor del percentatge es tractarà com a zero.</dd> -</dl> - -<h4 id="Valors_de_paraules_clau">Valors de paraules clau</h4> - -<dl> - <dt><code>none</code></dt> - <dd>L'alçada no té un valor màxim.</dd> - <dt><code>max-content</code>{{experimental_inline()}}</dt> - <dd>L'alçada preferida intrínseca.</dd> - <dt><code>min-content</code>{{experimental_inline()}}</dt> - <dd>L'alçada mínima intrínseca.</dd> - <dt><code>fill-available</code>{{experimental_inline()}}</dt> - <dd>L'alçada del bloc contenidor menys el marge vertical, la vora i el farcit. (Tingueu en compte que alguns navegadors implementen un nom antic per a aquesta paraula clau, <code>available</code>.)</dd> - <dt><code>fit-content</code>{{experimental_inline()}}</dt> - <dd>El mateix que <code>max-content.</code></dd> -</dl> - -<h3 id="Sintaxi_formal">Sintaxi formal</h3> - -{{csssyntax}} - -<h2 id="Exemples">Exemples</h2> - -<pre class="brush: css">table { max-height: 75%; } - -form { max-height: none; } -</pre> - -<h2 id="Especificacions">Especificacions</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Especificació</th> - <th scope="col">Estat</th> - <th scope="col">Comentari</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{ SpecName('CSS3 Sizing', '#width-height-keywords', 'max-height') }}</td> - <td>{{ Spec2('CSS3 Sizing') }}</td> - <td>Afegeix les paraules clau <code>max-content</code>, <code>min-content</code>, <code>fit-content</code> i <code>fill-available</code>. (Els esborranys CSS3 Box i CSS3 Writing Modes s'utilitzen per definir aquestes paraules clau, però són substituïdes per aquesta especificació<em>).</em></td> - </tr> - <tr> - <td>{{ SpecName('CSS3 Transitions', '#animatable-css', 'max-height') }}</td> - <td>{{ Spec2('CSS3 Transitions') }}</td> - <td>Defineix <code>max-height</code> com animable.</td> - </tr> - <tr> - <td>{{ SpecName('CSS2.1', 'visudet.html#min-max-heights', 'max-height') }}</td> - <td>{{ Spec2('CSS2.1') }}</td> - <td>Definició inicial.</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_Compatibility" name="Browser_Compatibility">Navegador compatibles</h2> - -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Descripció</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Suport bàsic</td> - <td>1.0</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop("1.0")}}</td> - <td>7.0</td> - <td>7.0</td> - <td>1.0</td> - </tr> - <tr> - <td>s'aplica a <code><table></code><sup>[1]</sup></td> - <td>{{ CompatNo() }}</td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{ CompatNo() }}</td> - <td>{{CompatVersionUnknown()}}</td> - <td>{{ CompatNo() }}</td> - </tr> - <tr> - <td rowspan="1"><code>max-content</code>, <code>min-content</code> i <code>fit-content</code> {{ experimental_inline() }}</td> - <td>{{ CompatNo() }} [3]</td> - <td>{{CompatNo}}</td> - <td>{{CompatGeckoDesktop("1.9")}}{{property_prefix("-moz")}} [2]</td> - <td rowspan="1">{{ CompatNo() }}</td> - <td rowspan="1">{{ CompatNo() }}</td> - <td>9[3](<a href="https://bugs.webkit.org/show_bug.cgi?id=113610">bug</a>)</td> - </tr> - <tr> - <td rowspan="1"><code>fill-available</code> {{ experimental_inline() }}</td> - <td>{{ CompatNo() }}</td> - <td>{{CompatNo}}</td> - <td>{{ CompatNo() }} {{ bug(527285) }}</td> - <td rowspan="1">{{ CompatNo() }}</td> - <td rowspan="1">{{ CompatNo() }}</td> - <td>{{ CompatNo() }}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Descripció</th> - <th>Android</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Phone</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Suport bàsic</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - <tr> - <td>s'aplica a <code><table></code><sup>[1]</sup></td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatNo}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - <tr> - <td rowspan="1"><code>max-content</code>, <code>min-content</code> i <code>fit-content</code> {{ experimental_inline() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatNo}}</td> - <td>{{ CompatUnknown() }}</td> - <td rowspan="1">{{ CompatUnknown() }}</td> - <td rowspan="1">{{ CompatUnknown() }}</td> - <td>9[3](<a href="https://bugs.webkit.org/show_bug.cgi?id=113610">bug</a>)</td> - </tr> - <tr> - <td rowspan="1"><code>fill-available</code> {{ experimental_inline() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{CompatNo}}</td> - <td>{{ CompatUnknown() }}</td> - <td rowspan="1">{{ CompatUnknown() }}</td> - <td rowspan="1">{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] CSS 2.1 deixa explícitament indefinit el comportament de <code>max-height</code> amb {{ HTMLElement("table") }}. Per tant, qualsevol comportament és compatible amb CSS2.1; les noves especificacions de CSS poden definir aquest comportament, de manera que els desenvolupadors web no haurien de confiar en un específic ara.</p> - -<p>[2] Gecko implementa experimentalment les definicions donades en CSS3 Basic Box. Aquesta defineix <code>available</code> i no <code>fill-available</code>. També la definició de <code>fit-content</code> és més simple que en CSS3 Sizing.</p> - -<p>[3] WebKit implementa una proposta anterior per establir l'alçada a una alçada intrínseca: les paraules clau són <code>intrinsic</code>, en comptes de <code>max-content</code> i <code>min-intrinsic</code>, en comptes de <code>min-content</code>. No hi ha equivalent per <code>fill-available</code> o <code>fit-content</code>.</p> - -<h2 id="See_also" name="See_also">Vegeu també</h2> - -<ul> - <li><a href="/en-US/docs/CSS/box_model" title="en/CSS/box_model">El model de caixa</a></li> - <li>{{ Cssxref("max-width") }}, {{ Cssxref("box-sizing") }}, {{ Cssxref("height") }}, {{ Cssxref("min-height") }}</li> -</ul> |
