Hi, why don't you try getting the height and width of the div.

Now create a new div and position it absolutely behind the original
div.

Inject elements of div width and 1px height in the div and fill it up
vertically. (or div height and 1px width horizontally)

get the start colour and end colour of the gradient
create a loop that calculates the difference between the R G and B,
divides it into as many stepped values as these new elements,
and progressively fill every element with a unique value.

I'm pretty new to mootools, someone better and faster could understand
what I mean and create this sooner.
I don't understand RGB that well to give the gradient a smooth finish.



Reply via email to