I am trying to put bits.svg as my background. I want it to cover the entire background of the page, but it won't even show at all. when I click on the URL it works, so I don't understand why it will not show. I added my HTML as well now. Perhaps the SVG file is an issue? The full URL path is C:\Users\jacob\Desktop\oblig2\bilder\bits.svg and it did not change when I tried to use that. I am quite confident the URL itself works.
h1 {
font-size: xx-large;
}
main {
display: inline-block;
border: dashed 2px black;
width: 1250px;
height: 230px;
background-color: white;
}
div.galleri img {
height: 200px;
}
#cssimage:hover {
background-color: yellow;
}
body {
background-image: url("..\oblig2\bilder\bits.svg");
}
aside {
background-color: pink;
font-weight: bold;
}
#navfooter {
background-color: lightblue;
}
<!DOCTYPE html>
<html>
<head>
<title> Oblig 2 IBE102</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="C:\Users\jacob\Desktop\oblig2\stil.css" />
</head>
<body>
<h1>Info om webutvikling</h1>
<nav id="navfooter">Navigasjon</nav>
<main>
<section>
<div class="galleri">
<table>
<tr>
<td><img alt="htmlsvg" src="..\oblig2\bilder\html.svg"></td>
<td><a href="..\oblig2\innhold\css.html"> <img id="cssimage" alt="csshtml" src="..\oblig2\bilder\css.svg">
</a></td>
</tr>
</table>
</div>
</section>
<aside>Ingen anekdoter foreløpig.</aside>
</main>
<footer id="navfooter">
<p>Nettstedet er drevet av meg. Jeg studerer her (klikk på bildet): <a href="https://www.himolde.no/">
<img alt="HIM" src="..\oblig2\bilder\himolde-logo.jpg" width="20" height="15"> </a></p>
</footer>
</body>
</html>