• Resolved Joerg Gebauer

    (@newshoremedia)


    Hi,

    I am experiencing troubles when using two or more SVGs on the same page. The first SVG is not displayed correctly anymore, looks like all styles are changed when displaying another SVG.

    Do you know of any issues when trying to embed more than one SVG file onto a single page?

    Regards,
    Joerg

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi there,

    You should be able to use as many as you want in a page, my plugin will iterate the class names with numbers so each SVG can be targeted separately using CSS as well as group target all of them if you want.

    Sounds like you might have some CSS or something that affects your SVG.

    Do you have a link so I can see what we’re talking about here?

    Thread Starter Joerg Gebauer

    (@newshoremedia)

    Hi,

    sorry for the delay! Unfortunately, I cannot provide a link because it is a closed intranet.

    What possible CSS issues are you referring to?

    Dustin

    (@dustamaphone)

    maybe there are common classnames between the SVG files and CSS targeting a class thought to be specific to a single image, might be inadvertently affecting the other one(s) you’re adding

    Plugin Author Benbodhi

    (@benbodhi)

    Exactly, I’m thinking you have some CSS that is conflicting somewhere.

    Plugin Author Benbodhi

    (@benbodhi)

    To be clear, this is really difficult to debug without being able to look at the browser inspector to see the code. If you could clone the site to a public URL, I could troubleshoot and help point out the issue.

    Thread Starter Joerg Gebauer

    (@newshoremedia)

    You’re right! The issue comes from CSS that comes as CDATA with both files from MS Visio. So the CSS of the first svg is partly overwritten by the CSS of the second one due to some similar class names.

    Plugin Author Benbodhi

    (@benbodhi)

    I’m glad you found the culprit ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display issues when showing more than one SVG on a single page’ is closed to new replies.