andy.0nljn3
New Member
I'm trying to get a gradient applied to an SVG \[code\]rect\[/code\] element.Currently, I'm using the \[code\]fill\[/code\] attribute. In my CSS file:\[code\]rect { cursor: pointer; shape-rendering: crispEdges; fill: #a71a2e;}\[/code\]And the \[code\]rect\[/code\] element has the correct fill color when viewed in the browser.However, I'd like to know if I can apply a linear gradient to this element?