gradiant1

by rootjang

HTML

<!DOCTYPE html>
<html lang="ko-KR">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>gradient</title>
  <style>
    .grad1 {
      width: 300px;
      height: 100px;
      background: #ff0000;
      background: -webkit-linear-gradient(45deg, #ff0000, #ffffff);
    }
    .grad2 {
      width: 300px;
      height: 100px;
      background: -webkit-linear-gradient(top, #06f, white 30%, #06f);
    }
  </style>
</head>
<body>
  <div class="grad1">각도</div>
  <div class="grad2">색상 중지 점</div>
</body>
</html>