Template:SimpleGradient

From City of Hope MUSH
Jump to navigation Jump to search

Welcome to parametric cascading style sheets.

This template provides simple linear horizontal or vertical gradients between two colors in a way that works for Firefox, Safari, and Chrome. As more browsers begin to support gradients, additional code can be added her to add this functionality to any pages using this template. Unsupported browsers will use a background with the solid "from" color.

This would normally be used within a <css> block, but it should also work within inline style= attributes on any element that can receive background settings. (But you generally don't want to do that!)

Example usage:

<source lang="xml">


</source>


<source lang="xml">


</source>


<source lang="xml">


</source>


<source lang="xml">


</source>


Any valid CSS color specification will work in the from/to arguments:

<source lang="xml">


</source>