asked on
@font-face {
font-family: 'My Own Font Name Drop';
src: url(/seabreezesoftware.com/Joes/Drop.TTF);
font-weight: normal;
}
#Green_Text
{
font-family: 'My Own Font Name Drop';
font-size: 24px;
font-weight: normal;
font-style: normal;
color: #4cbb17;
}
ASKER
ASKER
ASKER
ASKER
#Green_Text {
font-family: Drop;
font-size: 24px;
font-weight: normal;
font-style: normal;
color: #4cbb17;
}
ASKER
Where can I find info for the " class for your general font rules and another for the colour and apply accordingly"?What I meant was put the styles that cover the general aspects of the font in one class
.drop-font {
font-family: Drop
font-size: 24px;
}
And then put the colour in its own class.Green_Text {
color: #4cbb17;
}
<div class="drop-font Green_Text">...</div>
ASKER
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
@font-face {
font-family: MyFunkyFont;
src: url(‘Drop.ttf’);
}
#Green_Text {
font-family: MyFunkyFont;
}
The src of the font-face is relative to the CSS file itself, so if you store your fonts inside a 'fonts' folder under the same folder that contains your CSS, you would need to use:
src: url(‘fonts/Drop.ttf’);
You will need to use several different versions of the same font to ensure it works across all browsers. TTF won't work across all browsers, so you'll need WOFF / EOT / SVG copies of it. You then build up your @font-face tag to use all of them:
Open in new window
You can use a service like FontSquirrel's Generator - https://www.fontsquirrel.cWhen using fonts like this, you should also offer a fallback (for example sans-serif) in case the browser can't load them:
#Green_Text {
font-family: MyFunkyFont, sans-serif;
}