Skip to content

Instantly share code, notes, and snippets.

@danielmatthew
Created January 9, 2025 12:00
Show Gist options
  • Save danielmatthew/078847a693335fa6fe9775ba06744faa to your computer and use it in GitHub Desktop.
Save danielmatthew/078847a693335fa6fe9775ba06744faa to your computer and use it in GitHub Desktop.
Visually-hidden CSS
.visually-hidden {
position: absolute;
height: 1px;
width: 1px;
overflow: hidden;
white-space: nowrap;
clip: rect(0 0 0 0);
clip-path: inset(50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment