Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting CSS class attribute with Adobe Illustrator [closed]

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.

like image 619
radlan Avatar asked Nov 12 '12 15:11

radlan


People also ask

How do I get CSS code from illustrator?

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.

How do you use gradient CSS in Illustrator?

open illustrator->File->Place and choose svg file with gradient, gradient will be imported and applied to rectangle.


1 Answers

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.

like image 76
philipp Avatar answered Oct 04 '22 23:10

philipp