Hiding Content for Accessibility

/ Published in: CSS
Save to your folder(s)

Copy this code and paste it in your HTML
  1. .element-invisible {
  2. position: absolute !important;
  3. height: 1px; width: 1px;
  4. overflow: hidden;
  5. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  6. clip: rect(1px, 1px, 1px, 1px);
  7. }

URL: http://snook.ca/archives/html_and_css/hiding-content-for-accessibility

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.