CSS3 linear gradients using multiple color stops Examples
CSS3 linear gradients using multiple color stops Examples
<!DOCTYPE html>
<html>
<head>
<title>Example of Setting Linear Gradients Direction Using Angles</title>
<style type="text/css">
.gradient {
width: 400px;
height: 300px;
background: orange;
background: -webkit-linear-gradient(0deg, orange, yellow);
background: -ms-linear-gradient(0deg, orange, yellow);
background: linear-gradient(90deg, orange, yellow);
}
</style>
</head>
<body>
<div class="gradient"></div>
</body>
</html>
Output