nectar
nectar

Reputation: 9679

how to set font family?

my html code-

 <div class="logo"><h1><a href="index.html" class="lg">Shizin</a></h1></div>

my css code-

.lg {
font-family:Monotype Corsiva, Times, serif;
}

but it is not working.how can i set font style?

Upvotes: 2

Views: 14227

Answers (3)

Chase Wilson
Chase Wilson

Reputation: 1487

Font's with spaces in them need to be quoted.

font-family: "Times New Roman", Arial, "Trebuchet MS";

So :

.lg {
   font-family: "Monotype Corsiva", Times, serif;
}  

Should work fine.

Upvotes: 0

DELETE me
DELETE me

Reputation:

are you sure that your system have this font if not then see http://forums.asp.net/p/1467009/3392471.aspx

Upvotes: 0

oopbase
oopbase

Reputation: 11415

p {
font-family:"Times New Roman",Georgia,Serif;
}

This works fine, so do you maybe just have to add the " to Monotype Corsiva, or have to start writing serif with a big S?


Update: As you can read from the comment above: Using non-standard fonts on a web site is not trivial.

Upvotes: 2

Related Questions