diff options
author | julieng <julien.gattelier@gmail.com> | 2021-09-17 20:59:20 +0200 |
---|---|---|
committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-12 07:57:33 +0200 |
commit | 258ba7b4be62d8640477a3bd3146d08b00cb70ec (patch) | |
tree | a8476eee4c369ff47bdfe08353774414f2281ba3 /files/fr/web/css/empty-cells/index.md | |
parent | 149319bb8c7b1394a443f0877c3460cd362aa815 (diff) | |
download | translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.gz translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.bz2 translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.zip |
convert content to md
Diffstat (limited to 'files/fr/web/css/empty-cells/index.md')
-rw-r--r-- | files/fr/web/css/empty-cells/index.md | 132 |
1 files changed, 60 insertions, 72 deletions
diff --git a/files/fr/web/css/empty-cells/index.md b/files/fr/web/css/empty-cells/index.md index dc25ad57ab..a94bde5b3e 100644 --- a/files/fr/web/css/empty-cells/index.md +++ b/files/fr/web/css/empty-cells/index.md @@ -7,17 +7,18 @@ tags: - Reference translation_of: Web/CSS/empty-cells --- -<div>{{CSSRef}}</div> +{{CSSRef}} -<p>La propriété <strong><code>empty-cells</code></strong> définit la façon dont l'agent utilisateur doit afficher les bordures et l'arrière-plan des cellules d'un tableau ({{HTMLElement("table")}}) qui n'ont aucun contenu visible.</p> +La propriété **`empty-cells`** définit la façon dont l'agent utilisateur doit afficher les bordures et l'arrière-plan des cellules d'un tableau ({{HTMLElement("table")}}) qui n'ont aucun contenu visible. -<div>{{EmbedInteractiveExample("pages/css/empty-cells.html")}}</div> +{{EmbedInteractiveExample("pages/css/empty-cells.html")}} -<p>Cette propriété est uniquement appliquée lorsque <code>border-collapse</code> vaut <code>separate</code>.</p> +Cette propriété est uniquement appliquée lorsque `border-collapse` vaut `separate`. -<h2 id="Syntaxe">Syntaxe</h2> +## Syntaxe -<pre class="brush:css no-line-numbers">/* Valeurs avec mot-clé */ +```css +/* Valeurs avec mot-clé */ empty-cells: show; empty-cells: hide; @@ -25,52 +26,52 @@ empty-cells: hide; empty-cells: inherit; empty-cells: initial; empty-cells: unset; -</pre> +``` -<p>Cette propriété se définit avec l'un des mots-clés suivants.</p> +Cette propriété se définit avec l'un des mots-clés suivants. -<h3 id="Valeurs">Valeurs</h3> +### Valeurs -<dl> - <dt><code>show</code></dt> - <dd>Un mot-clé indiquant que les bordures et l'arrière-plan doivent être dessinés comme pour les cellules normales.</dd> - <dt><code>hide</code></dt> - <dd>Un mot-clé indiquant qu'aucune bordure ou arrière-plan ne doit être dessiné.</dd> -</dl> +- `show` + - : Un mot-clé indiquant que les bordures et l'arrière-plan doivent être dessinés comme pour les cellules normales. +- `hide` + - : Un mot-clé indiquant qu'aucune bordure ou arrière-plan ne doit être dessiné. -<h3 id="Syntaxe_formelle">Syntaxe formelle</h3> +### Syntaxe formelle {{csssyntax}} -<h2 id="Exemples">Exemples</h2> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html"><table class="table_1"> - <tr> - <td>Jean</td> - <td>Biche</td> - </tr> - <tr> - <td>Alice</td> - <td></td> - </tr> -</table> -<table class="table_2"> - <tr> - <td>Jean</td> - <td>Biche</td> - </tr> - <tr> - <td>Alice</td> - <td></td> - </tr> -</table> -</pre> - -<h3 id="CSS">CSS</h3> - -<pre class="brush: css">.table_1 { +## Exemples + +### HTML + +```html +<table class="table_1"> + <tr> + <td>Jean</td> + <td>Biche</td> + </tr> + <tr> + <td>Alice</td> + <td></td> + </tr> +</table> +<table class="table_2"> + <tr> + <td>Jean</td> + <td>Biche</td> + </tr> + <tr> + <td>Alice</td> + <td></td> + </tr> +</table> +``` + +### CSS + +```css +.table_1 { empty-cells: show; } .table_2 { @@ -81,33 +82,20 @@ td, th { border: 1px solid #999; padding: 0.5rem; } -</pre> - -<h3 id="Résultat">Résultat</h3> - -<p>{{EmbedLiveSample('Exemples', '100%', '200')}}</p> - -<h2 id="Spécifications">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('CSS2.1', 'tables.html#empty-cells', 'empty-cells')}}</td> - <td>{{Spec2('CSS2.1')}}</td> - <td>Définition initiale.</td> - </tr> - </tbody> -</table> +``` + +### Résultat + +{{EmbedLiveSample('Exemples', '100%', '200')}} + +## Spécifications + +| Spécification | État | Commentaires | +| ------------------------------------------------------------------------------------ | ------------------------ | -------------------- | +| {{SpecName('CSS2.1', 'tables.html#empty-cells', 'empty-cells')}} | {{Spec2('CSS2.1')}} | Définition initiale. | -<p>{{cssinfo}}</p> +{{cssinfo}} -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> +## Compatibilité des navigateurs -<p>{{Compat("css.properties.empty-cells")}}</p> +{{Compat("css.properties.empty-cells")}} |