From 258ba7b4be62d8640477a3bd3146d08b00cb70ec Mon Sep 17 00:00:00 2001 From: julieng Date: Fri, 17 Sep 2021 20:59:20 +0200 Subject: convert content to md --- files/fr/web/css/shape-margin/index.md | 112 +++++++++++++++------------------ 1 file changed, 50 insertions(+), 62 deletions(-) (limited to 'files/fr/web/css/shape-margin') diff --git a/files/fr/web/css/shape-margin/index.md b/files/fr/web/css/shape-margin/index.md index 7c382292a1..0da11ef82a 100644 --- a/files/fr/web/css/shape-margin/index.md +++ b/files/fr/web/css/shape-margin/index.md @@ -7,47 +7,47 @@ tags: - Reference translation_of: Web/CSS/shape-margin --- -
{{CSSRef}}
+{{CSSRef}} -

La propriété CSS shape-margin définit la marge autour d'une forme CSS créée avec {{cssxref("shape-outside")}}.

+La propriété CSS **`shape-margin`** définit la marge autour d'une forme CSS créée avec {{cssxref("shape-outside")}}. -
{{EmbedInteractiveExample("pages/css/shape-margin.html")}}
+{{EmbedInteractiveExample("pages/css/shape-margin.html")}} -

La marge permet d'ajuster la distance entre le contour de la forme (l'élément flottant) et le contenu autour.

+La marge permet d'ajuster la distance entre le contour de la forme (l'élément flottant) et le contenu autour. -
/* Valeur de longueur */
-/* Type <length> */
+```css
+/* Valeur de longueur */
+/* Type  */
 shape-margin: 10px;
 shape-margin: 20mm;
 
 /* Valeur proportionnelle */
-/* Type <percentage> */
+/* Type  */
 shape-margin: 60%;
 
 /* Valeurs globales */
 shape-margin: inherit;
 shape-margin: initial;
 shape-margin: unset;
-
+``` -

Syntaxe

+## Syntaxe -

Valeurs

+### Valeurs -
-
<length-percentage>
-
Cette valeur définit la marge entre la forme et le texte alentour grâce à une longueur (cf. {{cssxref("<length>")}}) ou à un pourcentage ({{cssxref("<percentage>")}}) proportionnel à la largeur du bloc englobant de l'élément.
-
+- `` + - : Cette valeur définit la marge entre la forme et le texte alentour grâce à une longueur (cf. {{cssxref("<length>")}}) ou à un pourcentage ({{cssxref("<percentage>")}}) proportionnel à la largeur du bloc englobant de l'élément. -

Syntaxe formelle

+### Syntaxe formelle {{csssyntax}} -

Exemples

+## Exemples -

CSS

+### CSS -
section {
+```css
+section {
   max-width: 400px;
 }
 
@@ -59,12 +59,14 @@ shape-margin: unset;
   clip-path: polygon(0 0, 150px 150px, 0 150px);
   shape-outside: polygon(0 0, 150px 150px, 0 150px);
   shape-margin: 20px;
-}
+} +``` -

HTML

+### HTML -
<section>
-  <div class="shape"></div>
+```html
+
+
We are not quite sure of any one thing in biology; our knowledge of geology is relatively very slight, and the economic laws of society are uncertain to every one except some individual who attempts to set them @@ -72,43 +74,29 @@ shape-margin: unset; was equal to the sum of the squares on the other two sides of a right triangle, and it will be so after this world is dead; and the inhabitant of Mars, if he exists, probably knows its truth as we know it. -</section>
- -

Résultat

- -

{{EmbedLiveSample("Exemples", 500, 250)}}

- -

Spécifications

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

{{cssinfo}}

- -

Compatibilité des navigateurs

- -

{{Compat("css.properties.shape-margin")}}

- -

Voir aussi

- - + +``` + +### Résultat + +{{EmbedLiveSample("Exemples", 500, 250)}} + +## Spécifications + +| Spécification | État | Commentaires | +| -------------------------------------------------------------------------------------------- | -------------------------------- | -------------------- | +| {{SpecName('CSS Shapes', '#shape-margin-property', 'shape-margin')}} | {{Spec2('CSS Shapes')}} | Définition initiale. | + +{{cssinfo}} + +## Compatibilité des navigateurs + +{{Compat("css.properties.shape-margin")}} + +## Voir aussi + +- [Les formes CSS](/fr/docs/Web/CSS/CSS_Shapes) +- [Un aperçu des formes CSS](/fr/docs/Web/CSS/CSS_Shapes/Aperçu_formes_CSS) +- {{cssxref("shape-outside")}} +- {{cssxref("shape-image-threshold")}} +- {{cssxref("<basic-shape>")}} -- cgit v1.2.3-54-g00ecf