Шаблон:Linear-gradient

Материал из Decimal Wiki
Версия от 18:43, 8 октября 2023; CryptoUser (обсуждение | вклад) (Новая страница: «<includeonly>background-image: -moz-linear-gradient({{{1|}}}, {{{2|}}}); background-image: -o-linear-gradient({{{1|}}}, {{{2|}}}); background-image: -webkit-linear-gradient({{{1|}}}, {{{2|}}}); background-image: linear-gradient({{Linear-gradient/legacy|{{{1|}}}}}, {{{2|}}});</includeonly><noinclude> Used to make a background with a linear gradient. ==Syntax== <pre>{{Template:Linear-gradient |(Direction) |(color 1 (stop)), (color2 (stop))}}</pre> *The pos...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску


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