Created
February 20, 2020 01:31
-
-
Save J-Cake/5a4f14577771f7a1717ce4a271da21a1 to your computer and use it in GitHub Desktop.
Show how to reference css files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link rel="stylesheet" href="/style.css"/> | |
<style> | |
:root { | |
--background: black; | |
} | |
#colour { | |
width: 300px; | |
height: 200px; | |
background: var(--background); | |
} | |
</style> | |
</head> | |
<body> | |
<div id="colour"></div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--background: black; | |
} | |
#colour { | |
width: 300px; | |
height: 200px; | |
background: var(--background); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment