I have this site:link
I put an image to understand better
The difference bothers me more background and text size.
Font used in photoshop is “ArchivoNarrow regular”, this I put myself in the CSS code below
CODE CSS:
.details-footer{
display: inline-block;
width: auto;
font-size: 9pt;
color: white;
font-family: ArchivoNarrow regular;
}
Can you tell me please from where all these differences and how can I fix?
Thanks in advance!
2
Answers
Have you defined the font? If not you do so like this:
then you need to upload the .woff font file to your folder.
To add font, insert this in your
index.php
or whatever file, that containt links to yourcss
files.<link href='https://fonts.googleapis.com/css?family=Archivo+Narrow:400,700' rel='stylesheet' type='text/css'>
You need to insert this above all other
css
links.Then add following line to your css, where you need it:
font-family: 'Archivo Narrow', sans-serif;
For example, to apply this to the footer:
.details-footer {
font-family: 'Archivo Narrow', sans-serif;
}
Done!
P.S.: It’s not a good idea to upload the font to your server, you should use Google Fonts when you can.