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

Template:Radial-gradient

From MafiaWiki
Revision as of 09:48, 8 November 2014 by Wgeurts (talk | contribs) (Created page with "<includeonly>background-image: -moz-radial-gradient({{{1|}}}, {{{2|}}}, {{{3|}}}); background-image: -o-radial-gradient({{{1|}}}, {{{2|}}}, {{{3|}}}); background-image: -webki...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template is used to make a radial gradient.

Syntax

{{Radial-gradient
|(Position)
|(Shape) [size]
|(Color1) [Stop], (Color2) [Stop], (Color...) [Stop...]
}}
  • The position can be any CSS position value.
  • Shapes are:
    • elllipse
    • circle
  • Sizes are:
    • farthest-corner
    • closest-corner
    • farthest-side
    • closest-side

Example

<div style="{{radial-gradient
|100px center
|ellipse farthest-corner
|#ffdddd, #ddddff, #ddffdd, #ffaabb 10%}}">*Example
*Example
*Example
*Example
*Example
*Example</div>

<div style="background-image: -moz-radial-gradient(100px center , ellipse farthest-corner , #ffdddd, #ddddff, #ddffdd, #ffaabb 10%); background-image: -o-radial-gradient(100px center , ellipse farthest-corner , #ffdddd, #ddddff, #ddffdd, #ffaabb 10%); background-image: -webkit-radial-gradient(100px center , ellipse farthest-corner , #ffdddd, #ddddff, #ddffdd, #ffaabb 10%); background-image: radial-gradient(100px center , ellipse farthest-corner , #ffdddd, #ddddff, #ddffdd, #ffaabb 10%); This template is used to make a radial gradient.

Syntax

{{Radial-gradient
|(Position)
|(Shape) [size]
|(Color1) [Stop], (Color2) [Stop], (Color...) [Stop...]
}}
  • The position can be any CSS position value.
  • Shapes are:
    • elllipse
    • circle
  • Sizes are:
    • farthest-corner
    • closest-corner
    • farthest-side
    • closest-side

Example

<div style="{{radial-gradient
|100px center
|ellipse farthest-corner
|#ffdddd, #ddddff, #ddffdd, #ffaabb 10%}}">*Example
*Example
*Example
*Example
*Example
*Example</div>

<div style="Template loop detected: Template:Radial-gradient">*Example

  • Example
  • Example
  • Example
  • Example
  • Example">*Example
  • Example
  • Example
  • Example
  • Example
  • Example