Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force Uppercase

Status
Not open for further replies.

rico14d

Programmer
Apr 8, 2002
135
GB
Hi there,

I want to force some text to be uppercase using HTML tags only.

My situation is that i am amending a large website where the attribute -

TEXT-TRANSFORM: lowercase;

has been added to each element in the many stylesheets used.

I dont want to change the stylesheets as this will change many items throughtout the site.

I basically want to achieve something like this.

The Code is <upper>xx</upper>.

where xx will be displayed in uppercase and the rest of the text will be lowercase.

Thanks in advance,

Rich.

 
I would use css for this
in the head section do
<style>
.upperCase { text-transform: uppercase }
</style>

and then use the class where you want the case to be upper
something like this
<span class=&quot;upperCase&quot;>xx</span> A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
So give a star to onpnt !!! Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top