Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created November 1, 2012 21:43
Show Gist options
  • Save steveosoule/3996799 to your computer and use it in GitHub Desktop.
Save steveosoule/3996799 to your computer and use it in GitHub Desktop.
Visually Hidden vs display:none
.visuallyhidden {
position: absolute;
width: 1px; /* Setting this to 0 make it invisible for VoiceOver */
height: 1px; /* Setting this to 0 make it invisible for VoiceOver */
padding: 0;
margin: -1px;
border: 0;
clip: rect(0 0 0 0);
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment