We would like to know how to background: linear-gradient(top, #3cf, #078);.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- w w w . j av a 2 s. co m-->
color: #fff;
text-align: center;
padding: 100px 0;
width: 400px;
height: 50px;
background: linear-gradient(top, #3cf, #078);
background: -webkit-linear-gradient(top, #3cf, #078);
background: -moz-linear-gradient(top, #3cf, #078);
}
</style>
</head>
<body>
<div>CSS Gradient Background</div>
</body>
</html>
The code above is rendered as follows: