Click to See Complete Forum and Search --> : Fonts and Javascripts


frankbiganski
03-09-2005, 12:32 PM
I want to add a javscript that's supplied by the company www.bankrate.com. They supply the script and allow me to add to my website for free (it shows current interest rates).

Here's the script:
<script language="javascript" src="http://www.bankrate.com/realfc/jsfeeds/realfc-mtg.js"></script>

My question is, how can I control the font style and size as the typical <font size="1"></font> doesn't work when placed around the script - don't laugh too hard, I'm a novice here ;)

I tried implementing text/css, using example online, but I need to be showed exactly what to add and where. Can you help?

Thanks a lot!

Frank

Jona
03-09-2005, 01:04 PM
Fortunately they were kind enough to add classes. Add this CSS to your heading tag:


<style type="text/css"><!--
.body-brm {
font-family: georgia, sans-serif;
font-size: 1em;
}
--></style>

frankbiganski
03-09-2005, 03:22 PM
Thanks Jona! I also now see that I need to add a .header-brm to the class as well. Where would I add this?

<style type="text/css"><!--
.body-brm {
font-family: tahoma, sans-serif;
font-size: 7pt;
}
--></style>

Thanks so much!
Frank

Jona
03-09-2005, 03:24 PM
Just before or after the { and } of the previous rule.


<style type="text/css"><!--
.header-brm {
font-family: tahoma, sans-serif;
font-size: 1.2em;
}
.body-brm {
font-family: tahoma, sans-serif;
font-size: 0.7em;
/*
Note: it is not recommended to use
point-sizes on the Web. These units
are best suited for printing exclusively.
*/
}
--></style>

frankbiganski
03-09-2005, 03:37 PM
Thanks again, and especially for that pointer about point sizes. I didn't understand what that was but now I do.

Invaluable info and much appreciated.
Frank

Jona
03-09-2005, 03:38 PM
Happy to help!