2019백업

12. CSS 배경 그라디언트 (background: linear-gradient)

728x90
background: linear-gradient (to bottom, dodgerblue, crimson);
                                      방향(~쪽으로)/ 시작색상/ 끝 색상

background: linear-gradient(45deg, dodgerblue 50%, crimson 50%);
background: radial-gradient(circle at center center, dodgerblue, crimson); 
                                     퍼지는 모양/ 시작위치/ 시작색상/ 끝 색상

 

Gradient Generator 구글 검색

(사이트를 통해 그라디언트를 만들 수 있다.)

반응형