Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to style all uppercase letters in CSS?

0
Posted

Is there a way to style all uppercase letters in CSS?

0

text-transform:uppercase will work in the majority of browsers, but not all. The platform and font also has to support that property. Edit: In response to your edit (thanks for the clarification), to do this with JavaScript would be cumbersome but not impossible. The script would probably also run very slowly on all but the latest computers, which would have the effect on the end-user of the page freezing for a moment after it has loaded, and then all of the lowercase text changing to italics. function FormatText(ele) { for(i=0;i) before the first lowercase letter we find and close the tag before the first uppercase we find. Repeat until we hit the end of the text inside this node. We determine whether it is uppercase or lowercase by examining its ASCII code */ } } } Or, I

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123