Skip navigation
Currently Being Moderated

Export SVG with classes, not IDs?

Jul 15, 2013 10:49 PM

Tags: #illustrator #css #svg #cc

I want to export an SVG file from illustrator, embed it in an HTML page and style it using CSS.


But when I name each layer in illustrator, it doesn't save them as classes but as IDs. How can I get the layers to be saved as classes instead?


Thank you!

  • Currently Being Moderated
    Jul 15, 2013 11:05 PM   in reply to millionbob

    If you don't have a lot of images, you could manually do it your self. Other than that I need to allow someone else to anwser your question. Sorry I wish I knew the answer.

    Mark as:
  • Currently Being Moderated
    Jul 16, 2013 12:06 AM   in reply to millionbob

    You will have to apply a graphic style to your elements. Named graphic styles are treated as classes. It's not reliable, though. AI's usual appearance-centric approach may produce a separate class every time a style interacts with another object.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points