I've been looking for an answer on this problem, from what I know you cannot embed, whether that is using for example <object> a SVG file and style that SVG file externally, whether that is a external or embedded CSS file if there is a method that I'm unaware of plesae guide me to the page.

Recommended Answers

All 2 Replies

No, you can't. Only if you inline your SVG you have quite some possibilities to style or animate its properties either through CSS or JS.

The only other method which still makes a http request is a server language such as PHP to load the SVG file via an external file, then I assume you can style the SVG file externally and it will effect the external SVG file, correct ? If so could anyone help ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.