Skip to content

Commit

Permalink
Updated visuallyHidden rule to make sure it overrides all other decla…
Browse files Browse the repository at this point in the history
…rations. Thanks Jonathan Neal. Fixes #194
  • Loading branch information
Divya Manian committed Dec 1, 2010
1 parent 43c3719 commit 07768ed
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,18 @@ button { width: auto; overflow: visible; }
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders
www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
.visuallyhidden { position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px); }
www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden
Updated to ensure no other style overrides the styles defined in this rule */
.visuallyHidden {
border: 0 !important;
clip: rect(0 0 0 0);
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }
Expand Down

0 comments on commit 07768ed

Please sign in to comment.