வார்ப்புரு:Gradient/doc
{{Documentation subpage}}
 &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
 
 This template creates a gradient background. This currently works in Firefox (3.6 and up), Opera (11.10 and up), Safari (4.0 and up), Google Chrome and Internet Explorer 10. In other browsers, it only displays the start color as background color.
 
 === Usage ===
 
 Use within a CSS style tag. The template uses the &lt;tt&gt;background-color&lt;/tt&gt; and &lt;tt&gt;background-image&lt;/tt&gt; properties, so best practice is to place it behind any other &lt;tt&gt;background&lt;/tt&gt; properties.
 
 &lt;tt&gt;&lt;nowiki&gt;&lt;div style=&quot;{{gradient | #start color | #end color | [orientation] | [stop color [| stop position]]}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/tt&gt;
 
 #&lt;tt&gt;start color&lt;/tt&gt; - Mandatory. The start color of the gradient in CSS notation.
 #&lt;tt&gt;end color&lt;/tt&gt; - Mandatory. The end color of the gradient in CSS notation.
 #&lt;tt&gt;orientation&lt;/tt&gt; - Optional. &lt;tt&gt;horizontal&lt;/tt&gt; (default) or &lt;tt&gt;vertical&lt;/tt&gt;, or specify start point: &lt;tt&gt;left&lt;/tt&gt;, &lt;tt&gt;top&lt;/tt&gt;, &lt;tt&gt;right&lt;/tt&gt; or &lt;tt&gt;bottom&lt;/tt&gt;.
 #&lt;tt&gt;stop color&lt;/tt&gt; - Optional. Intermediate color between the start and end color. 
 #&lt;tt&gt;stop position&lt;/tt&gt; - Optional. Position of the stop color between 0% and 100%. Default is 50%.
 
 Each parameter ''must'' be placed in their respective position.
 
 === Examples ===
 
 {{see also|Template:Gradient/testcases}}
 
 * &lt;tt&gt;&lt;nowiki&gt;&lt;div style=&quot;{{gradient|#ffdddd|#ddddff|horizontal}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/tt&gt; will produce
 
 &lt;div style=&quot;{{gradient|#ffdddd|#ddddff|horizontal}}&quot;&gt;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.&lt;/div&gt;
 
 * &lt;tt&gt;&lt;nowiki&gt;&lt;div style=&quot;{{gradient|#ffdddd|#ddddff|horizontal|#ddffdd|50%}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/tt&gt; will produce
 
 &lt;div style=&quot;{{gradient|#ffdddd|#ddddff|horizontal|#ddffdd|50%}}&quot;&gt;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.&lt;/div&gt;
 
 * &lt;tt&gt;&lt;nowiki&gt;&lt;div style=&quot;{{gradient|#ffdddd|#ddddff|vertical}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/tt&gt; will produce
 
 &lt;div style=&quot;{{gradient|#ffdddd|#ddddff|vertical}}&quot;&gt;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.&lt;/div&gt;
 
 === Considerations ===
 
 Above examples use contrasting colors to show the effect more clearly. It is best to use subtle differences in color to enhance the appearance, rather than radically change it. This also minimizes the effects between browsers that do and do not support gradients.
 
 === See also ===
 
 * {{tl|border-radius}}
 * {{tl|box-shadow}}
 
 &lt;includeonly&gt;
 &lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;
 [[Category:Cross-browser compatibility templates]]
 
 [[ar:قالب:Gradient]]