Skip to content

Instantly share code, notes, and snippets.

@thevangelist
Created January 7, 2017 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thevangelist/da1b59732b102eab8075087b81495823 to your computer and use it in GitHub Desktop.
Save thevangelist/da1b59732b102eab8075087b81495823 to your computer and use it in GitHub Desktop.
Use :target for alternate layouts
<!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