Šablon:Linear-gradient/dok
Ovo je stranica dokumentacije za {{Šablon:Linear-gradient}} (pogledajte tu stranicu za sam šablon). Sadrži informacije za korištenje, kategorije i drugi sadržaj koji nije dio stranice originalnog šablona. |
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
urediUse within a CSS style tag. The template uses the background-image property.
style="{{linear-gradient|#boja [stop], #boja [stop], #boja [stop], ...] }}"
Primjer
uredi<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- {{box-shadow}}