CSS background using Gradient

Education Blogs - OnToplist.com

 <!DOCTYPE html>
<html>
<head>
<style>
#grd {
  height: 55px;
  background-color: red; 
  background-image: linear-gradient(to right, red, orange, yellow, green,               blue, indigo, violet);
}
</style>
</head>
<body>
<div id="grd" style="text- align:center;margin:auto;color:#888888;font-size:40px;font-weight:bold">
Gradient in Multiple colors
</div>
</body>
</html>



Comments

Popular Posts