I'd like to have a different font face for numbers on my website (applied automatically). I know it can't be done with just CSS, but could it be done with javascript?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
closed as off topic by Daniel Beck♦ Jul 26 '12 at 22:50
Questions on Super User are expected to relate to computer software or computer hardware within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
This can be done with CSS. Try looking at http://www.google.com/webfonts/ or http://www.fontsquirrel.com/fontface. All you have to do is include the CSS and reference the font name when styling your numbers. Just remember, CSS is about styling what you see and javascript is more about how the site works, under the hood kind of stuff. Although jQuery crosses over the two, it's still only manipulating the CSS. |
|||
|