tags:

views:

143

answers:

3
+2  Q: 

css text-align bug

I'm seeing a strange text-align bug using FF 3.0.11 on Ubuntu-Hardy.

test case

The letter "f" is way out in left field. I can also make this happen with a variety of fonts and sizes, involving as many as three letters flying away and stacking onto each other.

Is this known? Is a fix known?

(I have another question open about this that I'm closing asap, as the context has been ruled out)

+1  A: 

Does anything change if you add a "text-align:center;" to the Div css?

ttony21
negative. The one I keep changing is http://bbby.org/share/css_bug_dev.html , but please note that it's changing as ideas come in.
bibby
Maybe if the line height is smaller than the height of the actual font it doesn't work?
ttony21
lineHeight is never small than the fontSize. I assume that they use the same measure. fontSize is generally 70-75% that of the lineHeight in my tests.
bibby
+1  A: 
David Thomas
A: 

My answer was to get Firefox 3.5 today. :) Thanks, all.

bibby