aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/_doublecolon_target-text
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-09-17 20:59:20 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-12 07:57:33 +0200
commit258ba7b4be62d8640477a3bd3146d08b00cb70ec (patch)
treea8476eee4c369ff47bdfe08353774414f2281ba3 /files/fr/web/css/_doublecolon_target-text
parent149319bb8c7b1394a443f0877c3460cd362aa815 (diff)
downloadtranslated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.gz
translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.tar.bz2
translated-content-258ba7b4be62d8640477a3bd3146d08b00cb70ec.zip
convert content to md
Diffstat (limited to 'files/fr/web/css/_doublecolon_target-text')
-rw-r--r--files/fr/web/css/_doublecolon_target-text/index.md44
1 files changed, 23 insertions, 21 deletions
diff --git a/files/fr/web/css/_doublecolon_target-text/index.md b/files/fr/web/css/_doublecolon_target-text/index.md
index b576694e50..77125839b7 100644
--- a/files/fr/web/css/_doublecolon_target-text/index.md
+++ b/files/fr/web/css/_doublecolon_target-text/index.md
@@ -1,43 +1,45 @@
---
title: '::target-text'
-slug: 'Web/CSS/::target-text'
+slug: Web/CSS/::target-text
+translation_of: Web/CSS/::target-text
browser-compat: css.selectors.target-text
-translation_of: 'Web/CSS/::target-text'
---
-<div>{{CSSRef}}{{SeeCompatTable}}</div>
+{{CSSRef}}{{SeeCompatTable}}
-<p>Le <a href="/fr/docs/Web/CSS/Pseudo-elements">pseudo-élément</a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>::target-text</code></strong> représente le texte vers lequel l'écran vient de défiler, dans le cas où le navigateur prend en charge les fragments <code>scroll-to-text</code>. Il permet aux auteurs de mettre en valeur cette section de texte.</p>
+Le [pseudo-élément](/fr/docs/Web/CSS/Pseudo-elements) [CSS](/en-US/docs/Web/CSS) **`::target-text`** représente le texte vers lequel l'écran vient de défiler, dans le cas où le navigateur prend en charge les fragments `scroll-to-text`. Il permet aux auteurs de mettre en valeur cette section de texte.
-<pre class="brush: css no-line-numbers">::target-text {
+```css
+::target-text {
  background-color: pink;
-}</pre>
+}
+```
-<h2 id="syntax">Syntaxe</h2>
+## Syntaxe
-<p>{{csssyntax}}</p>
+{{csssyntax}}
-<h2 id="examples">Exemples</h2>
+## Exemples
-<h3 id="highlighting_scroll-to-text">Mise en valeur de scroll-to-text</h3>
+### Mise en valeur de scroll-to-text
-<pre class="brush: css no-line-numbers">::target-text {
+```css
+::target-text {
background-color: rebeccapurple;
color: white;
font-weight: bold;
-}</pre>
+}
+```
-<p>Pour voir ce code CSS en action, suivez ce lien vers la <a href="https://mdn.github.io/css-examples/target-text/index.html#:~:text=From%20the%20foregoing%20remarks%20we%20may%20gather%20an%20idea%20of%20the%20importance">démonstration de scroll-to-text</a>.</p>
+Pour voir ce code CSS en action, suivez ce lien vers la [démonstration de scroll-to-text](https://mdn.github.io/css-examples/target-text/index.html#:~:text=From%20the%20foregoing%20remarks%20we%20may%20gather%20an%20idea%20of%20the%20importance).
-<h2 id="specifications">Spécifications</h2>
+## Spécifications
-<p>{{Specifications}}</p>
+{{Specifications}}
-<h2 id="browser_compatibility">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat}}</p>
+{{Compat}}
-<h2 id="See_also">Voir aussi</h2>
+## Voir aussi
-<ul>
- <li><a href="https://web.dev/text-fragments/">Text fragments (en anglais)</a></li>
-</ul>
+- [Text fragments (en anglais)](https://web.dev/text-fragments/)