<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<title>Contoh Pengaturan Lokasi Penghentian Warna</title>
<style>      
	.gradient {
		width: 400px;
		height: 300px;
		/* Kode pangganti untuk browser yang tidak mendukung gradien*/
		background: red;
		/* Untuk Safari 5.1 to 6.0 */
		background: -webkit-linear-gradient(red, yellow 30%, lime 60%);
		/* Untuk Internet Explorer 10 */
		background: -ms-linear-gradient(red, yellow 30%, lime 60%);
		/* Standard syntax */
		background: linear-gradient(red, yellow 30%, lime 60%);
	}
</style>
</head>
<body>
    <div class="gradient"></div>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.