skip to Main Content

I was doing a portfolio project on my own and had a problem and don’t know how to fix it.
When I go to the github’s live page it doesn’t show me the background.
Fun fact is that on VS Code it works so idk.

Here’s the project: https://github.com/bautitobal/mi-portfolio
Live page: https://bautitobal.github.io/mi-portfolio/

Tried with img/fondo.jpg and even with ‘https://bautitobal.github.io/mi-portfolio/mi-portfolio/img/fondo.jpg’

2

Answers


  1. try:

    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)), url(‘../img/fondo.jpg’);

    this seems file path issue you need to get to the image folder from your css folder

    Login or Signup to reply.
  2. i hope it can help U, it work for me

    .inicio{
    background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)),
    url('../img/fondo.jpg');
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search