Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 3
    try precents in svg widths and heights.
    – Sina R.
    Commented Oct 21, 2013 at 1:07
  • 1
    @ncm How would it be done with JS?
    – Mawg
    Commented Aug 7, 2017 at 17:51
  • 1
    To set it in JS: yoursvgelem.setAttribute("width", "100%"); and yoursvgelem.setAttribute("height", "100%"); @MawgsaysreinstateMonica Commented May 7, 2022 at 10:49