Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Der Titel des Dokuments</title>
<style>
#example {
border: 3px dashed #1ebf42;
padding: 15px;
background: #1c87c9;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
}
</style>
</head>
<body>
<h2>Ein Beispiel für die Eigenschaft background-clip</h2>
<p>Hier ist background-clip auf "text" gesetzt.</p>
<div id="example">
<p>Der Hintergrund wird innerhalb des Vordergrundtextes gemalt.</p>
</div>
</body>
</html>