Home > Software engineering >  css and certain images not working in github pages
css and certain images not working in github pages

Time:10-03

I am coding a newspaper website, and I want to make a directory for the articles

I have copied the code from article's to the article directory and cleared the articles out of the code to put a story in its place.

Please help me: here's the repo
https://github.com/reedycreektimes/reedycreektimes.github.io

CodePudding user response:

You should set absolute path for your css.

/css/media.css
# not
css/media.css

The latter would work fine from the root path of the site, not from a subpath/subfolder.

  • Related