Forum Moderators: not2easy

Message Too Old, No Replies

How to change a default font with CSS?

change default font with css

         

dedhed9

9:07 pm on Aug 11, 2006 (gmt 0)

10+ Year Member


My wysiwyg editor bases its output on CSS and layers. However, if I add a javascript feature to the page, such as a time and date displayer, then this information is displayed using the default font & size.

This looks a bit grim, with "11 August 2006" in 12-pt Times New Roman black, with the rest of the page in Arial 14 dark grey (or whatever).

What can I add to the CSS list on the page, to change this?

Geoffrey james

5:54 am on Aug 12, 2006 (gmt 0)

10+ Year Member



Try this,

add to css:

.date {
font-family:(whatever family you want);
font-size: 12px;
color: FFFFF; (or whatever color you req)

than add a class tag around date info on html page.

<span class="date"> your other program info for clock to work </span>

Geoff

Geoffrey james

5:55 am on Aug 12, 2006 (gmt 0)

10+ Year Member



oh I left a closing bracket out.

.date {
font-family:(whatever family you want);
font-size: 12px;
color: FFFFF; (or whatever color you req)
}

sorry

Geoff

dedhed9

1:23 pm on Sep 13, 2006 (gmt 0)

10+ Year Member




System: The following message was spliced on to this thread from: http://www.webmasterworld.com/css/3081423.htm [webmasterworld.com] by trillianjedi - 1:43 pm on Sep. 13, 2006 (utc 0)


Thanks for the CSS advice you gave me a month back, which fixed a problem. The thread is a month old now and won't let me post a new reply to thank you, therefore this note. I've been away.

(You gave me a tip on how to change the default font used by a script to give the day&date.

Cheers,

Chris

[edited by: SuzyUK at 1:34 pm (utc) on Sep. 13, 2006]

trillianjedi

1:45 pm on Sep 13, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



* bump *

Just to unlock thread