I need to display text on a blue gradient color background within a table. How could I render this using Javascript?
Thanks a lot!
I need to display text on a blue gradient color background within a table. How could I render this using Javascript?
Thanks a lot!
You can do this with CSS if you know that your visitors browsers support this feature: http://hacks.mozilla.org/2009/11/css-gradients-firefox-36/
Another link worth visiting is this page that has a CSS generator that allows you to create the style interactively: http://gradients.glrzad.com/
Here's the CSS for a blue gradient:
-webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.18, rgb(20,169,250)),
color-stop(0.67, rgb(43,61,255)),
color-stop(0.86, rgb(36,54,171))
)
-moz-linear-gradient(
center bottom,
rgb(20,169,250) 18%,
rgb(43,61,255) 67%,
rgb(36,54,171) 86%
)
The best way to do this is by css and background image with gradient.
use background
css property.