gradient 속성 (그라데이션)


http://colorzilla.com/gradient-editor/


위 사이트에서 그라데이션 할 때 원하는 색 코드를 만들 수 있다.


아직까지 모든 웹 브라우저에서 css3의 모든 기능을 제공하지 못하기 때문에

모든 웹 브라우저에서 그라데이션을 제공하기 위해서 코드가 아래와 같이 짜여져서 나온다.


ex)

* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#1e5799+0,2989d8+50,207cca+51,7db9e8+100;Blue+Gloss+Default */

background: #1e5799; /* Old browsers */

background: -moz-linear-gradient(top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%); /* FF3.6-15 */

background: -webkit-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Chrome10-25,Safari5.1-6 */

background: linear-gradient(to bottom, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */

+ Recent posts