Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

LinearGradient at svg without id

  • Nema odgovora
  • 1 ima ovaj problem
  • 1 view
more options

Hello I have this SVG:

<svg >
       <rect width="100%" height="100%" fill="url(#linear-gradient-1)" />
       <defs>
         <linearGradient id="linear-gradient-1">
           <stop offset="0%" stop-color="gold" />
           <stop offset="100%" stop-color="silver" />
         </linearGradient>
       </defs>
     </svg>

But how can I insert linearGradient without using an id. I have a lot of svgs and its very hard to remember all of ids...

Hello I have this SVG: <svg > <rect width="100%" height="100%" fill="url(#linear-gradient-1)" /> <defs> <linearGradient id="linear-gradient-1"> <stop offset="0%" stop-color="gold" /> <stop offset="100%" stop-color="silver" /> </linearGradient> </defs> </svg> But how can I insert linearGradient without using an id. I have a lot of svgs and its very hard to remember all of ids...