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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script for changing font size? 1

Status
Not open for further replies.

bassguy

Programmer
Jun 21, 2001
336
US
Hi, I am trying to change the font-size of some text with a server side script. I have tried this script:

<P id=text style=font-size:10;color:red>this is what I want to change</p>
<p onclick=text.style.font-size=14>click to enlarge</p>
<p onclick=text.style.color='blue'>click to turn blue</p>

I can turn the text blue but not make it larger....I am hoping that this does not mean there is no script equivalent for font-size.... any suggestions..?
thanks ahead of time

bassguy
 
I was about to flame you when I decided to try one last time....I had tried fontsize with no luck before I posted the original question.....then it worked....IT IS CASE SENSITIVE!!!!!!!


thanks much

bassguy
 
Yes, it is definitely case sensitive, as is much of JavaScript (and most other programming languages).
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top