AMK300 / Class3-css-

Class 3 | CSS styles
https://cssstyles.netlify.app
0 stars 1 forks source link

Found the reason the stylesheet wasn't working (Fix inside) #1

Open AimanK opened 2 years ago

AimanK commented 2 years ago

Go into the index.html file

Changing this line below made the styles work

Before: <link rel="stylesheet" href="css/style.css"> After: <link rel="stylesheet" href="style.css"> (Remove reference to a non-existent css folder in the HTML link tag)

Reasoning: The style.css file isn't located in any css folder, therefore, the file path to the stylesheet of css/style.css doesn't contain any css folder which is crucial for the way the css will be loaded onto the page by the browser.

AMK300 commented 2 years ago

Thank you bro!

Sent from my iPhone

On Dec 25, 2021, at 2:43 AM, Aiman Kayad @.***> wrote:

 In the index.html file

Changing this line below made the styles work

Before:

After: (Remove reference to a non-existent css folder in the HTML link tag)

Reasoning: The style.css file isn't located in any css folder, therefore, the file path to the stylesheet of css/style.css doesn't contain any css folder which is crucial for the way the css will be loaded onto the page by the browser.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.