473,494 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
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
2 1885
pbmods
5,821 Recognized Expert Expert
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
mrhoo
428 Contributor
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

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

Similar topics

1
2197
by: Fabian Rossbacher | last post by:
hello, does anybody know how to change font-face in Arial,Verdana etc. when i'm using image-functions of PHP? Font-Size is clear to me... $fontSize=2 imagestring($im, $fontSize, $px,...
3
6626
by: Cengiz Ulku | last post by:
Hi all, I know now how to change the font name of a RTF file in a RTB control using, for example: RTextBox1.SelFontName = cmbFonts.Text I have a RTF file -created with Word- displayed in a...
2
26505
by: Isaac Grover | last post by:
Hi everyone, Rather than have this construct in my pages: <table> <tr><td><font face=arial size=3>line1</font></td></tr> <tr><td><font face=arial size=3>line2</font></td></tr> <tr><td><font...
4
4226
by: Clive Everett | last post by:
I thought it would be rather fun to try out @font-face, but I cannot get it to work. I used Microsoft WEFT to generate several embedded fonts and find that the example below works when I use my...
32
3902
by: Andreas Prilop | last post by:
Here is an illustration of the warning http://ppewww.ph.gla.ac.uk/~flavell/charset/browsers-fonts.html#dont that you should not specify a typeface when you have characters outside West European...
20
12369
by: B Wooster | last post by:
There is a page that shows Firefox 1.0 render text differently for CSS as compared to FONT FACE for one particular font: http://www.aczoom.com/fonts/xdvng.ttf is the font that does not work. ...
5
24080
by: Porthos | last post by:
I'm authoring an XML document and using the <pre> html tag for the portions that are not dynamically generated. The <pre> text is displaying in a smaller font size (and I believe different font)...
2
1394
by: pierre d. | last post by:
Could someone be kind enough to tell me how I could change the coding (see below) if I want to change the font and the sixe of the font of the description, which appears after mouse-over event...
4
14034
by: ateale | last post by:
Hey guys I have had a bit of a hunt around on google to try find out how to change the overall default font style/size for a wx.python app - but not had any luck. Does anyone have any idea if...
6
8184
by: DruidFluid | last post by:
Hello, I’m using Paul Irish’s “bulletproof” @font-face code and a premade font kit from fontsquirrel.com on my tumblr template. The @font-face code seems to work fine in Chrome but not in Safari or...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.