I have bought an svg graphics, which I have exported to .svg file, so that it can be used in inline HTML. I have inserted it into <body>
tag of my document, but now I want it to fill full width and full height of the screen. I have tried setting width and height attribute of <svg>
, position: absolute
and top, right, bottom, left: 0
, viewBox
set to "0 0 screen_width screen_height"
, load .svg file as image and force image to be full-window using position: absolute
nad top, right, bottom, left: 0
.
Nothing worked, though.
Here is the svg itself: http://pastebin.com/y8kqf1bD
I have tried all of the options from Full width and height SVG but they do not work, too.
Do you have an idea how could I do that?
Thanks so much in advance!
<svg>
elements are sized using height and width attributes sowill fill the screen.
You will additionally need to set both the
<html>
and<body>
tags style="width:100%;height:100%" to ensure that they cover the screen. Here's a complete full screen rect:You can also do this via a stylesheet if you want.