This is my html file
<!DOCTYPE html> <html> <head> <title>CSS cheat sheet</title> <link rel="stylesheet" type="text/css" href="csscheatsheet/style.css"> </head> <body> <h1> Hello World</h1> </body> </html>
This is my css file
h1 { color: green;}
You can see what I am trying to achieve at 10:44 mark. Just changing the h1 by changing the color, but it is not working. I have the same file names as the guy in the Youtube video. (https://www.youtube.com/watch?v=yfoY53QXEnI)
Asked
Active
Viewed 136 times
0

EternalHour
- 8,308
- 6
- 38
- 57

VToastB
- 1
-
Your changes should be being applied, but it's possible you may have cached the stylesheet. Try a hard refresh with `CTRL` + `SHIFT` + `R`. – Obsidian Age Feb 24 '20 at 20:28
-
2Is the path to your stylesheet correct? Check the network tab of the browser's dev tools – j08691 Feb 24 '20 at 20:28
-
1You are referencing a file `csscheatsheet/style.css` are you sure this path is correct? – Jackson Feb 24 '20 at 20:29
-
yes i am positive that is correct this is the path "href="csscheatsheet/style.css" and there are no typo's in my file names i double checked and all the names are correct along with CTRL + SHIFT + R did not work unfortunately. – VToastB Feb 25 '20 at 02:57
-
Try adding one more slash at the beginning:href="/csscheatsheet/style.css" , or refresh with Ctrl+F5 – Sophie cai Feb 25 '20 at 03:08
-
No that didn't work either :( try running the code yourself if you can it is just a. HTML and CSS file all the code is there just curious if my sublime text is the issue – VToastB Feb 25 '20 at 03:24