My goal is to frame the entire page with the border defined in the svg image. I thought my css
should do the trick, but the border doesn't scale to the browser window.
What should my .css file look like?
Should I modify the svg
viewbox
?
My Code:
html {
background: url(img/border.svg) no-repeat fixed;
background-size: cover;
background-size: 100% 100%;
}
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>some text.</p>
<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg">
<path d="m0 0.1375h198.7v111.92h-198.7v-111.92m2.3812 1.8521v98.954c0 1.3229 1.0583 2.3812 2.6458 2.3812h191.29l0.26459-98.69c0-1.5875-1.0583-2.6458-2.9104-2.6458z" fill="#d9d9d9"/>
</svg>
</body>
</html>