Skip to content

Background Image Won't Display on GitHub Pages #35195

Discussion options

You must be logged in to vote

You need to change the image url from url("images\portBackground.jpg"); to "../images/portBackground.jpg"

  • backslash to forward slash
  • one level up (../), since images/ dir is outside of the css dir

https://github.com/nathan-friedman-designs/nathanfriedmanportfolio/blob/420f4f5ea4aeccc41ba89e4212eb818f77136e34/css/index.css#L6

Replies: 9 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@nathan-friedman-designs
Comment options

@m3c-ode
Comment options

@DarkOphanim
Comment options

Answer selected by nathan-friedman-designs
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mondoakim
Comment options

@mondoakim
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mostafa16dev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Product Feedback