Michael Winter said the following on 3/12/2006 7:31 AM:[color=blue]
> On 12/03/2006 05:59, Randy Webb wrote:
>
> [Using CSS to present text in upper case]
>[color=green]
>> The nonsense is letting CSS control it. What if CSS is not supported,
>> disabled, or doesn't support text-transform-uppercase?[/color]
>
> If case is purely presentational, as it was in the OP, then who cares if
> CSS is disabled? The text will be shown in title case.[/color]
That's not what Thomas suggested. Thomas suggested something like this:
<span style="text-transform: uppercase">current directors</span>
<span style="text-transform: uppercase">if i want this text uppercased
then it matters</span>
THE ONLY WAY THIS TEXT WONT BE UPPERCASED IS IF THE USER HAS A
STYLESHEET THAT LOWERCASES IT.
User has browser set to ignore all styles in a webpage (IE).
My text appears the way I want it. The CSS transformed text doesn't.
User has a browser that doesn't support text-transform: uppercase.
My text appears the way I want it. The CSS transformed text doesn't.
That list goes on and on. The only one where my text will be altered is
if the user has a stylesheet to set all case to a particular way and
then it won't matter because both of our text will get transformed.
Result? Type it the way you want it, then it appears the way you want it.
That makes using CSS to transform case a nonsense approach other than to
be able to say "I added some extra code to do what I could have done
myself".
[color=blue]
> The content is "Current Directors". The desired presentation is "CURRENT
> DIRECTORS". It really shouldn't matter which is the rendered result,
> especially if that result is consistent.
> Clearly, if the /content/ is upper-case ('HTML', for example) then CSS
> shouldn't be used in that case.[/color]
That is precisely what the OP was doing. It was all uppercase, Thomas
said don't do that - use CSS to do it.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/