Created
October 10, 2016 16:53
-
-
Save anonymous/19bc553e68e93a7b2215fe3bb4ec76fb to your computer and use it in GitHub Desktop.
// source http://jsbin.com/nuyelicoxe
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> | |
<head> | |
<style> | |
div:not(:target) { | |
display: none; | |
} | |
div:target { | |
display: block; | |
} | |
</style> | |
</head> | |
<body> | |
<a href="#tab-1">Tab One</a> | |
<a href="#tab-2">Tab Two</a> | |
<div id="tab-1"> | |
Tab one contents | |
</div> | |
<div id="tab-2"> | |
Tab two contents | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment