...

View Full Version : my font wont change



wsammy
09-22-2007, 09:21 PM
Hi,

I am trying to change the font for my main bodily text and my heading but it will no change. Here is the code



#head {
font-style: "Trebuchet MS";
position: absolute;
top: 30;
left: 130;
}

#bodytext {
top: 200;
font-size: 18;
font-style: "Cooper Black";
}


and



<div id="head">
<h2>Welcome to the Lib Dems Supporter Society</h2>
</div>

<div id="bodytext">
<p>This is is home of all supporters of the Lib Dems. It holds details of their policys,<br />
information about up and coming events, YouGov survey results and graphs, and<br />
details about the main members of the party. It is the ultimate information database<br />
about the Liberal Democrats.</p>
<hr />
<p>Here are some useful links:</p>
</div>


I wonder if you could help!

PappaJohn
09-22-2007, 09:42 PM
Instead of font-style: you want font-family:

If the user does not have the font you specify installed on their system, the text will not be displayed in that font.

wsammy
09-22-2007, 09:59 PM
Instead of font-style: you want font-family:

If the user does not have the font you specify installed on their system, the text will not be displayed in that font.

Thanks So Much.

BWiz
09-22-2007, 10:25 PM
FYI, you weren't using a unit of measurement for the font-size attribute. You need one (either px, em or %) for it to work.

cloned
09-23-2007, 05:30 PM
Peronally i would use:



p, a, span, h1, h2, body {
font-family: "Trebuchet MS";
}

.headtext {
font-weight: bold;
}


so you have a constant in all your text, when use CSS classes for the size and/or colour etc.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum