Viewing CSS gradient master background
CSS gradient master background
User: Rob W. 9 years ago
|
|
Can anyone provide some CSS that will apply a gradient for a master background? browser background doesn't let you apply a gradient so i tried using CSS. I've tried a few things but nothing has worked unless i'm placing the code in the wrong area.. i pasted the code in the master head code section. this was from one website i tried. background: -moz-linear-gradient(top, rgba(160,160,160,0.65) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(160,160,160,0.65)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(160,160,160,0.65) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(160,160,160,0.65) 0%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(160,160,160,0.65) 0%,rgba(0,0,0,0) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(160,160,160,0.65) 0%,rgba(0,0,0,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6a0a0a0', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */ |
|
User: Rob W. 9 years ago
|
|
I want to use CSS rather than an image because it loads instantly, images slow the page right down. | |
User: Jumbo T. 9 years ago
|
|
For the content erea : <style> div.container { gradient code } </style> Or for the whole browser window : <style> body { gradient code } </style> |
|
✔ Best Answer
|
Post Reply |
You must login or signup to post. |