Why isn’t my Negative text-indent hiding text?
I’m making this post so that some day some person will google that phrase, and come here, and I can tell them that it might be because some parent element has a text-align: right set on it, which seems to render negative text-indents not at all. Set the thing to text-align: left and everything will be ok.
December 1st, 2009 at 8:21 pm
Hey adam
I did find this post through google, but unfortunately, i looked at your solution, and it doesn’t remedy my situation. I was looking for something that spoke about the validity of negative text-indent values.
But I do appreciate the thought. Cheers!
January 6th, 2010 at 6:02 pm
You rock! This worked exactly as you had hoped and my problem was fixed, lickety-split. Thank you!
January 12th, 2010 at 3:59 pm
Nice! That solved it – thanks!
January 22nd, 2010 at 5:33 pm
Well I exactly searched that phrase and this solved my problem.
Thanks pal.
February 16th, 2010 at 3:46 pm
You are my hero. I did indeed Google almost that exact phrase
March 10th, 2010 at 5:28 pm
That day has come. Thanks for the advice.
April 9th, 2010 at 2:15 pm
AWESOME! Thank you sir!
April 15th, 2010 at 7:51 am
it does make sense – if you’re aligning the text to the right, the indent should be relative to the right. thanks for pointing it out!
June 9th, 2010 at 6:49 pm
That was it, thanks!
August 27th, 2010 at 9:52 am
Hello, for those for which this didn’t work, try this: {position: absolute; left: -9999em;}
November 23rd, 2010 at 1:17 pm
Awesome, yet another perfect solution. Never thought of the text-align: right coming from the parent element. Great tip by the way for hiding text without setting it to huge number, do a fixed with element and overflow: hidden, then you only need to text-indent about -200px.
January 24th, 2011 at 12:05 pm
THANK YOU!
And I am grateful for you thoughtfulness!
You saved the day for me!
January 28th, 2011 at 3:53 am
Nicely done! Same problem, same solution. I didn’t think that could be the problem, but I guess it makes sense in some way…
March 24th, 2011 at 10:50 am
you saved me time, thanks
April 22nd, 2011 at 4:55 pm
oh man!!
it worked perfectly!
thank you!
June 27th, 2011 at 9:11 am
Perfect! Thank you!