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

Template:Linear-gradient: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
| bottom = to top
| bottom = to top
| left = to right
| left = to right
| right = to left
| right = to left</pre>
| top left
| left top = to bottom right
| top right
| right top = to bottom left
| bottom left
| left bottom = to top right
| bottom right
| right bottom = to top left</pre>
*Don't add the text past the "="
*Don't add the text past the "="



Revision as of 14:51, 6 November 2014


Used to make a background with a linear gradient.


Syntax

{{Template:Linear-gradients|(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