Rich-text Reply

gradient background

squabble 09-04-15
Accepted Solution

gradient background

Hi there,

 

I was wondering how to change a background to a gradient background.


Changing the color using: 

$("body").css('background-color','#00000');

works perfectly, but what is the syntax for changing it to a gradient?

Thank you for your help,

 

Fabian

Level 2

squabble 09-04-15
 

Re: gradient background

Solved this as well in an old school way: I just created a 1500px long and 5px wide picture with the gradient and repeated the bg:

$("body").css({'background-image':'url("http://yoururl")'});

maybe this helps someone.

 

Please close the thread, thank you

Level 2