Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the font-family like a digital clock CSS? [closed]

Tags:

css

I would like to use a font-family in CSS that the numbers and maybe letters looks like the one in a digital clock. Where can I find a font like this?

like image 852
zgrizzly_7 Avatar asked Nov 11 '15 11:11

zgrizzly_7


People also ask

What is the CSS attribute to choose a font-family?

The CSS font-family Property In CSS, we use the font-family property to specify the font of a text. Note: If the font name is more than one word, it must be in quotation marks, like: "Times New Roman".

What are all the font-family in CSS?

Font families You list the font that you want first, then any fonts that might fill in for the first if it is unavailable, and you should end the list with a generic font, of which there are five: serif, sans-serif, monospace, cursive and fantasy.


1 Answers

Just do this

@font-face{  font-family:'digital-clock-font';  src: url('put_the_location_to_your_font.ttf or .otf'); } 

Then apply it to your text font-family:'digital-clock-font'

Use Google to find a font you like, or try this link for digital clock fonts: http://www.1001fonts.com/digital+clock-fonts.html

like image 73
Collins Abitekaniza Avatar answered Sep 23 '22 15:09

Collins Abitekaniza