<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<title>Contoh Pengaturan Ukuran Radial Gradient</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-radial-gradient(left bottom, circle farthest-side, red, yellow, lime);
		/* Untuk Internet Explorer 10 */
		background: -ms-radial-gradient(left bottom, circle farthest-side, red, yellow, lime);
		/* Standard syntax */
		background: radial-gradient(circle farthest-side at left bottom, red, yellow, lime);
	}
</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.