You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Linear-gradient

From MafiaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Used to make a background with a linear gradient.


Syntax

{{Template:Linear-gradient
|(Direction)
|(color 1 (stop)), (color2 (stop))}}
  • The possible directions are:
| top = to bottom
| bottom = to top
| left = to right
| right = to left
  • Don't add the text past the "="

Example

<div style="{{Linear-gradient
|top
|#ff0000 50%, #0000ff}}">Example</div>
Example


To mess around with gradients go to Template:Linear-gradient/sandbox