Skip to main content

Svg.style

The Svg.style property holds a string that will be rendered as the style section of the SVG document.

Signature

<style type="text/css">
/* svg.style will be inserted */
</style>

Notes

The style property is where plugins will add additional styling.

When adding your own styles, it's important not to overwrite this property, but rather add your own.

In other words, do this:

svg.style += myStyles

and don't do this:

svg.style = myStyles