skip to Main Content

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


  1. there is problem with your path structure. Hope it will fix it

    content: url("/Math.gg/logo.png");
    
    Login or Signup to reply.
  2. why do u use this way: ?
    u can use <a href='#'> <img src="your img path"></a>
    and adjust your image dimensions.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search