By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,970 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,970 IT Pros & Developers. It's quick & easy.

Changing font face, size, color, etc. of JavaScript output

P: 1
sorry for the newbie question, but I've copied and pasted a "date" javascript onto my webpage, but can't figure out how to modify the font - size, color, type face, etc.

Thanks for your help.
Jun 27 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 5,821
Moving to the JavaScript forum....

Heya Barney. Welcome to TSDN!

How does the JavaScript put the date on your page? Does it use document.write()? Do you have to create an HTML element and give it a certain ID?
Jun 27 '07 #2

P: 428
Simplest way is to give the element that contains the date text a class name, and define the class style properties in a style sheet.
Jun 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.