Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Der Titel des Dokuments</title>
<style>
#grad {
height: 500px;
background-color: blue; /* Für Browser, die keine Farbverläufe unterstützen */
background-image: linear-gradient(to right, #1c87c9, #8ebf42);
}
</style>
</head>
<body>
<h1>Hintergrund des linearen Gradienten von rechts nach links</h1>
<div id="grad"></div>
</body>
</html>