It looks like your existing svg files also have an xml-like file structure, but they are condensed into a few lines, instead of ~50 lines, like the Inkscape svg file. Is there a reason why you need to embed the svg files into the CSS code, instead of linking to them?
If you look at the <rect ... /> tags in the Inkscape-generated file, you will see that they contain essentially the same information as your existing svg triangle files, but with carriage returns at the end of each attribute. Same for <path ... />. You could just copy and paste those tags and get rid of carriage returns. Hope this helps a little.
I need to include my Inkscape created .svg into an embedded .css.
In "that" .css existing .svg have the following syntax:
However saving in .svg from Inkskape I get a different format, XML like, e.g.
etc
Is there any way I can make inkscape saving svg i nthe format I need?
Thanks!
Hi rs232,
It looks like your existing svg files also have an xml-like file structure, but they are condensed into a few lines, instead of ~50 lines, like the Inkscape svg file. Is there a reason why you need to embed the svg files into the CSS code, instead of linking to them?
If you look at the <rect ... /> tags in the Inkscape-generated file, you will see that they contain essentially the same information as your existing svg triangle files, but with carriage returns at the end of each attribute. Same for <path ... />. You could just copy and paste those tags and get rid of carriage returns. Hope this helps a little.
Yes this must be kept within a single file only, as it's part of an embedded firmware and this is statically looking for a single .css.
I have actually found the issue: I had to escape all the #
So ordered everything in one line, replaced # with \# and it all worked :-)
That's great! I am glad to hear it is working for you!