VSCで簡単なHPを作るためのコードを入力し、GithubでHTML、CSS、画像をアップロードしWEBサイトを見たのですが、HTMLしか反映されずCSSが反映されませんでした。GO Liveで確認した際には問題なく反映できていました。どうしたらCSSを反映することができるのか教えていただきたいです。
pushしてから3時間は経っています。
発生している問題・エラーメッセージ
CSSが反映されない
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HP</title> <link rel="stylesheet" href="https://(GitHubのアカウント名).github.io/(リポジトリ名)/style.css"/> </head> <body> <header> <div class="container"> <div class="header-left"> <div class="header-logo">自己紹介用HP</div> </div> </div> </header> <div class="top-wrapper"> <div class="container"> <h1>HELLO</h1> </div> </div> <div class="main-wrapper"> <div class="container"> <div class="heading"> <h2>プロフィール</h2> <p>生年月日 1996/07/21</p> <p>趣味 イラストを描くこと、YOUTUBEを見ること、スマホゲーム</p> <p>過去イラスト↓</p> </div> <div class="div_design004"> <div class="div_design004_contents"> <img src="マルコスてすら。.png"> <p>#コンパス よりマルコスとテスラ</p> </div> <div class="div_design004_contents"> <img src="ろあちゃん.png"> <p>にじさんじ より夢月ロア</p> </div> </div> <div class="container2"> <div class="heading"> <h2>勉強した内容</h2> <p>Progate HTML&CSS初級、中級編</p> <p>JavaScript I ほか</p> <h2>使用機材等</h2> <p>Mac Book Pro(Retina, 13-inch,Early 2015)</p> <p>Visual studio Cord(エディタ)</p> </div> </div> </div> <div class="message-wrapper"> </div> <footer> </footer> </body> </html>
CSS
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN"; } a { text-decoration: none; } .container { width: 1170px; padding: 0 15px; margin: 0 auto; } .top-wrapper { padding: 180px 0 100px 0; background-image: url(../images/背景.jpeg); background-size: cover; height: 350px; color: white; text-align: center; } .top-wrapper h1 { opacity: 0.7; font-size: 45px; letter-spacing: 5px; } .container span { color: yellow; } .top-wrapper p { opacity: 0.7; } header { height: 65px; width: 100%; background-color: rgba(34, 49, 52, 0.9); } .header-logo { font-size: 20px; margin-top: 15px; color:white; float: left; } .header-left { float: left; } .main-wrapper { height: 550px; padding-bottom: 80px; background-color: #f7f7f7; } .heading { padding-top: 60px; padding-bottom: 30px; color: #5f5d60; } .heading h2 { font-weight: normal; } /* BOXデザイン004 */ .div_design004 { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } .div_design004 .div_design004_contents { background: #ddd; width: 300px; height: 300px; margin: 5px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .div_design004 .div_design004_contents img { width: 100%; height: auto; } .div_design004 .div_design004_contents p { font-size: 1rem; width: auto; margin: 0; padding: 1rem; display: block; text-align: center; } コード
