Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1134379 of shape-margin

  • Raccourci de la révision : Web/CSS/shape-margin
  • Titre de la révision : shape-margin
  • ID de la révision : 1134379
  • Créé :
  • Créateur : SphinxKnight
  • Version actuelle ? Oui
  • Commentaire MàJ vs. rév. en-US 1134039

Contenu de la révision

{{CSSRef}}

La propriété shape-margin permet d'ajouter une marge à {{cssxref("shape-outside")}}.

{{cssinfo}}

Syntaxe

/* Valeurs de longueur */
/* Type <length>       */
shape-margin: 10px;
shape-margin: 20mm;

/* Valeurs de pourcentage */
/* Type <percentage>      */
shape-margin: 60%;

/* Valeurs globales */
shape-margin: inherit;
shape-margin: initial;
shape-margin: unset;

Valeurs

<length-percentage>
Définit la marge utilisée pour la forme avec la valeur fournie. Les valeurs exprimées en pourcentages sont relatives à la largeur du bloc englobant l'élément.

Syntaxe formelle

{{csssyntax}}

Exemples

Voir {{cssxref("shape-outside")}}

Spécifications

Spécification État Commentaires
{{SpecName('CSS Shapes', '#shape-margin-property', 'shape-margin')}} {{Spec2('CSS Shapes')}} Définition initiale.

Compatibilité des navigateurs

{{CompatibilityTable}}
Fonctionnalité Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Support simple {{CompatVersionUnknown}} {{CompatNo}} {{CompatNo}} {{CompatNo}} 7.0 {{property_prefix("-webkit")}}
Fonctionnalité Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Support simple {{CompatVersionUnknown}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatUnknown}}

Voir aussi

  • {{cssxref("shape-outside")}}
  • {{cssxref("basic-shape")}}

Source de la révision

<div>{{CSSRef}}</div>

<p>La propriété<strong> <code>shape-margin</code></strong> permet d'ajouter une marge à {{cssxref("shape-outside")}}<code>.</code></p>

<p>{{cssinfo}}</p>

<h2 id="Syntaxe">Syntaxe</h2>

<pre class="brush:css">
/* Valeurs de longueur */
/* Type &lt;length&gt;       */
shape-margin: 10px;
shape-margin: 20mm;

/* Valeurs de pourcentage */
/* Type &lt;percentage&gt;      */
shape-margin: 60%;

/* Valeurs globales */
shape-margin: inherit;
shape-margin: initial;
shape-margin: unset;
</pre>

<h3 id="Valeurs">Valeurs</h3>

<dl>
 <dt>&lt;length-percentage&gt;</dt>
 <dd>Définit la marge utilisée pour la forme avec la valeur fournie. Les valeurs exprimées en pourcentages sont relatives à la largeur du bloc englobant l'élément.</dd>
</dl>

<h3 id="Syntaxe_formelle">Syntaxe formelle</h3>

<pre class="syntaxbox">
{{csssyntax}}</pre>

<h2 id="Specifications">Exemples</h2>

<p>Voir {{cssxref("shape-outside")}}</p>

<h2 id="Specifications">Spécifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Spécification</th>
   <th scope="col">État</th>
   <th scope="col">Commentaires</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS Shapes', '#shape-margin-property', 'shape-margin')}}</td>
   <td>{{Spec2('CSS Shapes')}}</td>
   <td>Définition initiale.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Compatibilité des navigateurs</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Fonctionnalité</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Support simple</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>7.0 {{property_prefix("-webkit")}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Fonctionnalité</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Support simple</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li>{{cssxref("shape-outside")}}</li>
 <li>{{cssxref("basic-shape")}}</li>
</ul>
Revenir à cette révision