Template:Highlight Gradient: Difference between revisions

From Green Family Wiki
Jump to navigation Jump to search
No edit summary
m (6 revisions imported: Initial import from smithfam)
 
(No difference)

Latest revision as of 13:11, 7 December 2015

Generate a CSS background for the given list of colors. For an empty list, the result is "transparent"; for a single element, the result is that color; for multiple elements, the result is a gradient. The gradient includes a zone for each color followed by an equally-sized transition zone to the next color.

  • First parameter: a slash-delimited (/) list of CSS colors
  • direction: direction for gradient; default is "to right"