I recently purchased an svg graphic and exported it to a .svg file with the intention of using it in inline HTML. I placed it within the <body>
tag of my document, but now I'm trying to make it fill the entire width and height of the screen. I've attempted various methods such as setting the width and height attributes of the <svg>
element, using position: absolute
and setting top, right, bottom, left: 0
, adjusting the viewBox
to "0 0 screen_width screen_height"
, loading the .svg file as an image and positioning it as full-window using position: absolute
and top, right, bottom, left: 0
. Unfortunately, none of these methods have been successful so far.
For reference, here is a link to the svg file: http://pastebin.com/y8kqf1bD
I have also tried implementing the solutions provided in this Stack Overflow thread on achieving full width and height SVG, but with no luck.
If you have any insights or suggestions on how to accomplish this, I would greatly appreciate it!
Thank you in advance for your help!