Šablon:Linear-gradient
Izgled
Dokumentacija šablona | [uredi] [historija] [ ] |
Ova dokumentacija je prikazana u Šablon:Linear-gradient/dok. |
This template creates a gradient background. This currently works in Firefox (3.6 and up), Opera (11.10 and up), Safari (5.1 and up), Google Chrome (10 and up) and Internet Explorer 10.
Korištenje
[uredi izvor]Use within a CSS style tag. The template uses the background-image property.
style="{{linear-gradient|#boja [stop], #boja [stop], #boja [stop], ...] }}"
Primjer
[uredi izvor]<div style="{{linear-gradient|#ffdddd, #ddddff}}">Lorem ipsum...</div>
will produce:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div style="{{linear-gradient|left, #ffdddd, #ddffdd 50%, #ddddff}}">Lorem ipsum...</div>
will produce:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Također pogledajte
[uredi izvor]- {{box-shadow}}