BenjaBoy
BenjaBoy

Reputation: 480

Applying single Font to Entire web documents

I want to apply single font for each html pages through out my website. So far I tried this:

* { font-family:Nyala; }

but this works for only one page.

Upvotes: 1

Views: 243

Answers (4)

vlio20
vlio20

Reputation: 9295

You should include this CSS style to each html page you wish it to take affect in.

Each HTML page should include this:

<head>
    <link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

And the mystyle.css is:

* { font-family:Nyala; }

Note: see @Raptor comments in order to improve your code.

Upvotes: 5

nrsharma
nrsharma

Reputation: 2562

To make a css global you can place it in one common css file and make it's reference on every page.

Another point is if you are using master page in your website then you can place the reference of that css file once in the master page and it will automatically inherited on every content page which have master page applied.

Upvotes: 0

Jaison James
Jaison James

Reputation: 4552

Move * { font-family:Nyala; } in to a external css file like style.css and call it to the head section of the all html file you want like below.

<link type="text/css" rel="stylesheet" href="style.css" />

Don't forget to give exact file path where you keep your .css file.

Upvotes: 2

NidhinRaj
NidhinRaj

Reputation: 385

Add Below css

body{font-family:Nyala;}

Upvotes: 0

Related Questions