I am trying to apply a gradient to an SVG rect element.
I am currently using the fill attribute. In my CSS file:
rect { cursor: pointer; shape-rendering: crispEdges; fill: #a71a2e; }
And the rect element has the correct fill color when viewed in a browser.
However, I would like to know if I can apply a linear gradient to this element?
css gradient svg linear-gradients
Hrishikesh Choudhari Dec 27 '12 at 8:01 2012-12-27 08:01
source share