வார்ப்புரு:Linear-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 (5.1 and up), Google Chrome (10 and up) and Internet Explorer (10 and up).
 
 == Usage ==
 
 Use within a CSS style tag. The template uses the &lt;code&gt;background-image&lt;/code&gt; property.
 
 &lt;code&gt;&lt;nowiki&gt;&lt;div style=&quot;{{linear-gradient | start position | #color [stop], #color [stop][, #color [stop], ...] }}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/code&gt;
 
 #&lt;code&gt;start position&lt;/code&gt; – Mandatory. Specify a start point: &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;right&lt;/code&gt; or &lt;code&gt;bottom&lt;/code&gt;, or a combination of two of each, e.g. &lt;code&gt;top left&lt;/code&gt;. This provides eight starting points.
 #&lt;code&gt;color&lt;/code&gt; – The first two colors are mandatory. You can define any number of additional colors, separated with commas.
 #&lt;code&gt;stop&lt;/code&gt; – Optional. You can specify a stop position for each color using a percentage (e.g. 45%) or pixels (e.g. 60px).
 
 == Technical notes ==
 
 Unlike {{tl|gradient}}, this template does ''not'' assign a default background-color, and therefor does not provide an automatic fallback for browsers that do not support gradients. To provide a fallback, always specify a background color ''in front'' of the template. This allows for much more flexibility in design and fallback handling in unsupported browsers.
 
 This template uses the new CSS3 properties for linear gradients: &lt;code&gt;-moz-linear-gradient&lt;/code&gt;, &lt;code&gt;-o-linear-gradient&lt;/code&gt;, &lt;code&gt;-webkit-linear-gradient&lt;/code&gt; and &lt;code&gt;linear-gradient&lt;/code&gt; It does not use the legacy &lt;code&gt;-webkit-gradient&lt;/code&gt; property due to its deviating parameter format. This means that this template does not work in Safari versions below 5.1 and Google Chrome versions below 10.
 
 == Examples ==
 
 {{see also|Template:Linear-gradient/testcases}}
 
 * &lt;code&gt;&lt;nowiki&gt;&lt;div style=&quot;{{linear-gradient|left|#ffdddd, #ddddff}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/code&gt; will produce
 
 &lt;div style=&quot;{{linear-gradient|left|#ffdddd, #ddddff}}&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;code&gt;&lt;nowiki&gt;&lt;div style=&quot;{{linear-gradient|left|#ffdddd, #ddffdd 50%, #ddddff}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/code&gt; will produce
 
 &lt;div style=&quot;{{linear-gradient|left|#ffdddd, #ddffdd 50%, #ddddff}}&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;code&gt;&lt;nowiki&gt;&lt;div style=&quot;{{linear-gradient|top|#ffdddd, #ddddff}}&quot;&gt;Lorem ipsum...&lt;/div&gt;&lt;/nowiki&gt;&lt;/code&gt; will produce
 
 &lt;div style=&quot;{{linear-gradient|top|#ffdddd, #ddddff}}&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.
 
 == Compatibility ==
 * See [https://developer.mozilla.org/en-US/docs/CSS/linear-gradient#Browser_compatibility linear-gradient] on the Mozilla Developer Network for all browser compatibility details.
 
 == See also ==
 
 * {{tl|radial-gradient}}
 * {{tl|border-radius}}
 * {{tl|box-shadow}}
 
 &lt;includeonly&gt;
 &lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;
 [[Category:Cross-browser compatibility templates]]