CSS Property Value How to - background-image: linear-gradient(to bottom );








Question

We would like to know how to background-image: linear-gradient(to bottom );.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
html, body {<!--  ww w  .j  a  v a  2s. co m-->
  width: 100%;
  height: 100%;
}

body {
  background-image: linear-gradient(to bottom, #FFFFFF 0px, #FFFFFF 55px, #C4C7C9 55px,#FFFFFF 100%);
  background-position: 0px 0px;
  background-repeat: no-repeat;
}
</style>
</head>
<body>
</body>
</html>

The code above is rendered as follows: