본문 바로가기
자바 풀스택 공부

Day 28. Css 그라데이션

by seung_nari 2022. 2. 12.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            /* background: linear-gradient(180deg, blue, white, blue);
            height: 1000px; */
        }
        .cls {
            width: 500px;
            height: 500px;
            border: 1px solid;
        }
        .grad1 {
            background: linear-gradient(blue, white 30%, blue 50%);
        }
        .grad2 {
            background: linear-gradient(red , 
            orange 15%,
            yellow 30%, 
            green 45%, 
            blue 60%, 
            indigo 75%, 
            purple 90%);
        }
        .grad3 {
            /* 빠라바라빠람빰빰빰빠라빰 */
            background: linear-gradient(red 15% , 
            orange 15%, orange 30%
            yellow 30%, yellow 30%
            green 45%, green 45%
            blue 60%,  blue 60%
            indigo 75%, indigo 75%
            purple 90%);
        }
    </style>
</head>
<body>
    <div class="cls grad3"></div>
</body>
</html>

'자바 풀스택 공부' 카테고리의 다른 글

Day 30.  (0) 2022.02.14
Day 29. text-shadow, white-space 공백 처리하기, margin, text-indent 텍스트 들여쓰기  (0) 2022.02.12
Day 27.  (0) 2022.02.09
Day 26.  (0) 2022.02.08
Day 25.  (0) 2022.02.07

댓글