You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Linear-gradient: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<pre>{{Template:Linear-gradients|(Direction)|(color 1 (stop)), (color2 (stop))}}</pre> | <pre>{{Template:Linear-gradients | ||
|(Direction) | |||
|(color 1 (stop)), (color2 (stop))}}</pre> | |||
*The possible directions are: | *The possible directions are: | ||
<pre> | <pre> | ||
Line 18: | Line 20: | ||
==Example== | ==Example== | ||
<pre><div style="{{Linear-gradient|top|#ff0000 50%, #0000ff}}">Example</div></pre> | <pre><div style="{{Linear-gradient | ||
|top | |||
|#ff0000 50%, #0000ff}}">Example</div></pre> | |||
<div style="{{Linear-gradient|top|#ff0000 50%, #0000ff}}">Example | <div style="{{Linear-gradient|top|#ff0000 50%, #0000ff}}">Example |
Revision as of 14:52, 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