views:

186

answers:

2

I'm trying to hide some text inside an <li> element using CSS by setting text-indent: -999px;.
For some reason this doesn't work when I set the direction of the document to "rtl" (right to left - my site is in Hebrew).
When direction is "rtl" the text still shows...
Anyone knows why, and a way around this?

A: 

Have you tried a positive text-indent?

James Inman
yes, doesnt work
Crippletoe
i have tried a positive indent. it makes sense that it should work but it doesnt.
Crippletoe
A: 

The text-indent: -99px is an old trick, which is not the optimal way to hide text. Why not use visibility:hidden instead?

Tomer Cohen
Presumably this is an attempt to use a **background** image as content and provide real text for screen readers instead of using an `<img>` element with an `alt` attribute.
David Dorward
i cannot use visibility:hidden because i just need the text to go away. not the whole element in which the text is placed.any solution?
Crippletoe
also, i am using a background image there. quite correct!
Crippletoe