CSS Off-screen text

From Level Access Web Labs
Revision as of 15:01, 6 May 2016 by Smaniyar (talk | contribs)
Jump to navigation Jump to search

The text below this text but above the horizontal rule is hidden off screen with CSS clipping.



Off-screen label for radio button below this horizontal rule


CSS Code used in this example

.hidden
{
  position: absolute;
  clip: rect(1px 1px 1px);  /* for Internet Explorer */
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}