How to link my CSS to my HTML in a github hosted site

后端 未结 3 2086
太阳男子
太阳男子 2020-12-20 10:03

My problem is that my website that I\'m attempting to host with Github pages will not read the CSS that I have linked to it.

My HTML looks like this:



        
3条回答
  •  旧时难觅i
    2020-12-20 10:05

    You need to link your HTML to the github page rendered style.css and not the file itself in the repo.

    Change this:

    
    

    To this:

    
    

    And move that stylesheet reference inside your tag.

提交回复
热议问题