Posted By

aberdas on 03/24/12


Tagged

hack hide text accessibilty


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Bambo
thomasansems
kattygu


replacement for -9999px hide text


 / Published in: CSS
 

URL: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/

replacement for text indent: -9999px to hide text for labels & buttons, that doesn't require the browser to render a box 9999+ px wide.

  1. .hide-text {
  2. text-indent: 100%;
  3. white-space: nowrap;
  4. overflow: hidden;
  5. }

Report this snippet  

You need to login to post a comment.