Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use arial narrow in css?

Tags:

html

css

fonts

#main{
margin-left: auto;
margin-right: auto;
margin-top: 0;   
font-family: "Arial Narrow";
position: absolute;
font-size: 10pt;
}

this is a part of my css-code, where I want to use arial narrow

like image 429
Ichvan Ibragimov Avatar asked Jan 20 '14 10:01

Ichvan Ibragimov


3 Answers

You use it just like that. The user that views the page has to have the font installed, otherwise the browser will choose a different font.

You may want to specify fallbacks for those who don't have that font, for example:

font-family: "Arial Narrow", Arial, sans-serif;
like image 110
Guffa Avatar answered Sep 19 '22 13:09

Guffa


There is a bug with Firefox not recognizing Arial Narrow.

I use the CSS3 "font-stretch" property, and it works fine.

body{
font: 13px 'Arial Narrow', Arial, sans-serif; 
font-stretch: condensed;
}
like image 45
Jocó Bodó Avatar answered Sep 20 '22 13:09

Jocó Bodó


change like

font-family: "Arial Narrow", Arial, sans-serif;
like image 26
neel Avatar answered Sep 18 '22 13:09

neel