Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
#example {
border: 3px dashed #1ebf42;
padding: 15px;
background: #1c87c9;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
</style>
</head>
<body>
<h2>Exemple de la propriété background-clip</h2>
<p>Ici la background-clip est définie à "text"</p>
<div id="example">
<p>L'arrière-plan est dessiné dans le texte au premier plan.</p>
</div>
</body>
</html>