Skip to content

Can I add attributes to the <svg> element? #73

@ggstuart

Description

@ggstuart

I'd like to add a viewBox attribute to my svg.

e.g.

<svg viewBox="0 0 40 40" preserveAspectRatio="xMidYMid meet">
    <blah....>
</svg>

I can't work out how to do this. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions