I am trying to add a logo for my project but the logo is not displaying. I found out that if you place the logo file in the folder the css code is in, it will then display. How can I fix this?
#logo {
content: url("/Math.gg logo.png");
width: 250px;
position: absolute;
z-index: 10;
margin: 10px;
}
<a href="index.html"><div id="logo"></div></a>
2
Answers
there is problem with your path structure. Hope it will fix it
why do u use this way: ?
u can use
<a href='#'> <img src="your img path"></a>
and adjust your image dimensions.