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
(Created page with "<includeonly>background-image: -moz-linear-gradient({{{1|}}}, {{{2|}}}); background-image: -o-linear-gradient({{{1|}}}, {{{2|}}}); background-image: -webkit-linear-gradient({{...")
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:


Used to make a background with a linear gradient.
Used to make a background with a linear gradient.
==Syntax==
<pre>{{Template:Linear-gradient
|(Direction)
|(color 1 (stop)), (color2 (stop))}}</pre>
*The possible directions are:
<pre>
| top = to bottom
| bottom = to top
| left = to right
| right = to left</pre>
*Don't add the text past the "="
==Example==
<pre><div style="{{Linear-gradient
|top
|#ff0000 50%, #0000ff}}">Example</div></pre>
<div style="{{Linear-gradient|top|#ff0000 50%, #0000ff}}">Example
</div>
To mess around with gradients go to [[Template:Linear-gradient/sandbox]]
[[Category:Templates|{{PAGENAME}}]]

Latest revision as of 19:40, 7 November 2014


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