I am using Adobe Illustrator to create SVG images.
I need to set some additional attributes to the elements in the SVG, for example the CSS class
attribute. I would even like to add attribute from a custom namespace to it.
How is this possible? The attributes from a custom namespace are "nice to have", but the class
attribute is a MUST.
You can use the CSS from Illustrator in a variety of ways. At the bottom of the dialog box, there are several highlighted icons: Export Options, Export CSS, Copy Selected Style and Generate CSS. Another option is to simply copy the CSS from the CSS Export Options dialog box and use it as is.
open illustrator->File->Place and choose svg file with gradient, gradient will be imported and applied to rectangle.
I have not found a method for doing this with Adobe Illustrator, but it is very easy with Inkscape. Use the XML Editor (Edit » XML Editor) hack your attribute with namespace then Ctrl+Enter and it will be in the XML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With