/* A gradient tilted 45 degrees,
starting blue and finishing red */
linear-gradient(45deg, blue, red)
/* A gradient going from the bottom right to the top left corner,
starting blue and finishing red */
linear-gradient(to left top, blue, red)
/* Interpolation in rectangular color space */
linear-gradient(in oklab, blue, red)
/* Interpolation in polar color space */
linear-gradient(in hsl, blue, red)
/* Interpolation in polar color space
with longer hue interpolation method */
linear-gradient(in hsl longer hue, blue, red)
/* Color stop: A gradient going from the bottom to top,
starting blue, turning green at 40% of its length,
and finishing red */
linear-gradient(0deg, blue, green 40%, red)
/* Color hint: A gradient going from the left to right,
starting red, getting to the midpoint color
10% of the way across the length of the gradient,
taking the rest of the 90% of the length to change to blue */
linear-gradient(.25turn, red, 10%, blue)
/* Multi-position color stop: A gradient tilted 45 degrees,
with a red bottom-left half and a blue top-right half,
with a hard line where the gradient changes from red to blue */
linear-gradient(45deg, red 0 50%, blue 50% 100%)
색, 색의 개수, 비중, 각도 등을 조정하여 그라데션을 만들 수 있다.
태그, 클래스 등 안에
background : linear-gradient (색상)
background image : url("")
이미지가 다운로드 되어 있다면 html, 브라우저 주소/폴더명(이럴 경우에는css가 작성되고 있는 폴더 안에 넣어준다.) ""따옴표 안에 넣어준다.
background-repeat : no-repeat
background-position :
에 top, bottom, left, right, center 등 방향으로 지정background-size
background attachment
로 배경이미지 스크롤 지정background-position
과 background-size
로 이미지의 보여주고 싶은 부분과 크기를 조절해서 넣는다.