Created
January 7, 2017 13:43
-
-
Save thevangelist/da1b59732b102eab8075087b81495823 to your computer and use it in GitHub Desktop.
Use :target for alternate layouts
This file contains 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 lang="en" id="dark"> | |
<head> | |
<meta charset="utf-8"> | |
<title>:target for alternate layouts</title> | |
<style> | |
#dark:target body { | |
background: black; | |
color: white; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>:target for alternate layouts</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment