css background rainbow

Solutions on MaxInterview for css background rainbow by the best coders in the world

showing results for - "css background rainbow"
Keenan
02 Jan 2017
1#grad1 {
2    height: 200px;
3    background: red; /* For browsers that do not support gradients */
4    background: -webkit-linear-gradient(left, orange , yellow, green, cyan, blue, violet); /* For Safari 5.1 to 6.0 */
5    background: -o-linear-gradient(right, orange, yellow, green, cyan, blue, violet); /* For Opera 11.1 to 12.0 */
6    background: -moz-linear-gradient(right, orange, yellow, green, cyan, blue, violet); /* For Firefox 3.6 to 15 */
7    background: linear-gradient(to right, orange , yellow, green, cyan, blue, violet); /* Standard syntax (must be last) */
8}