Skip Navigation
/kbin meta @kbin.social minnieo @kbin.social

How do I add a background image (from a url) to my new magazine?

I have tried this code:
body { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }

Didn't work. Please help, thanks!

9
9 comments
  • Figured it out, you need to target #middle instead of body for the background to appear :)

    • okay, sooo be nice cause i don't know how to code at all lol, so idk if i did it right, but, when i did this:
      middle { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }

      it still didnt work :(

      • No worries, you need to include the pound sign before middle. So
        #middle { background-image: url('https://imgur.com/9Ns6RVS.png'); background-repeat: no-repeat; background-size: cover; }
        should work.

9 comments