Home > Enterprise >  Css background image not showing up (GitHub Pages)
Css background image not showing up (GitHub Pages)

Time:10-16

background-image: url("../images/digital-marketing-meeting.jpg");

I know it's how I have my files rooted and/or how I'm linking the image in my css but I cannot figure out why the image wont load.

GitHub repo: https://github.com/DylanSchmidt2/Challenge-repo-1

CodePudding user response:

have a try like this:

    background-image: url("/images/digital-marketing-meeting.jpg");

on my environment that works fine

CodePudding user response:

The background image url in your css file is wrong.

Current :

background-image: url("../css/digital-marketing-meeting.jpg");

Correct :

background-image: url("images/digital-marketing-meeting.jpg");
  • Related