sirpelidor
10-24-2005, 05:20 PM
hi, was thinking to add some gradient on my site, but the following code only works on IE.
style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#FF003399', EndColorStr='#FF6699CC');"
mozilla/firefox seems use something call the: SVG
svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<defs>
<linearGradient id="grad1">
<stop offset="0%" stop-color="white"/>
<stop offset="100%" stop-color="black"/>
</linearGradient>
</defs>
<rect x="10" y="10" width="80" height="80" fill="url(#grad1)" stroke="blue"/>
</svg>
is theres any html code that can be use so all browsers can recongize from it?
TIA
p.s: i perfer avoid the use of javascript since not all browsers support javascript the way like anothers do.
style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#FF003399', EndColorStr='#FF6699CC');"
mozilla/firefox seems use something call the: SVG
svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<defs>
<linearGradient id="grad1">
<stop offset="0%" stop-color="white"/>
<stop offset="100%" stop-color="black"/>
</linearGradient>
</defs>
<rect x="10" y="10" width="80" height="80" fill="url(#grad1)" stroke="blue"/>
</svg>
is theres any html code that can be use so all browsers can recongize from it?
TIA
p.s: i perfer avoid the use of javascript since not all browsers support javascript the way like anothers do.