Created
January 21, 2018 22:14
-
-
Save cmbaughman/73feb5ee6dc4ce5a6b18f89aabb56c35 to your computer and use it in GitHub Desktop.
Accessibility Hidden Skip Link
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
a.skip-main { | |
left:-999px; | |
position:absolute; | |
top:auto; | |
width:1px; | |
height:1px; | |
overflow:hidden; | |
z-index:-999; | |
} | |
a.skip-main:focus, a.skip-main:active { | |
color: #fff; | |
background-color:#000; | |
left: auto; | |
top: auto; | |
width: 30%; | |
height: auto; | |
overflow:auto; | |
margin: 10px 35%; | |
padding:5px; | |
border-radius: 15px; | |
border:4px solid yellow; | |
text-align:center; | |
font-size:1.2em; | |
z-index:999; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment