FANDOM


Description
This template produces an h2 heading enclosed in a gradient that fades from a specified color to white.
Dependencies
/* Gives the "Fade to transparent" effect in DIV, H2, table cells, etc. */
/* Used in conjunction with "background-color:<colour>" */
#gradient, .gradient, .gradient-horizontal { 
    background-image: url(http://images1.wikia.nocookie.net/templates/images/1/14/Gradient-1pixel-horizontal.png); 
}
Syntax
Type {{HeadingGradient|<Header title>|<bgcolor=>|<textcolor=>}}

.

Parameters
  • 1/headertext = Set header title text (default is Missing heading text)
  • bgcolor = Set background-color to fade from (default is .color1 background color)
  • textcolor = Set the text color (default is .color1 text color)
Sample output
{{HeadingGradient|Header title}} gives...

Header title


{{HeadingGradient|Header title2|bgcolor=#cedff2|textcolor=#4340bf}} gives...

Header title2


Issues
  • Probably a way to apply a CSS gradient without requiring an image reference.
See also
Community content is available under CC-BY-SA unless otherwise noted.