I meant the font-family property.
The font-family property on the MDN web site mentions to list the font
names when using font-family for a given selector, for example;
font-family: "<name of font>","<name of font>";
While the font face property you can list the name of the font and if
you're hosting the font, the URL of the font location to which I want to
do. Not sure if it works with a given selector, as it's not working for me ?
@font-face
font-family:"<name of font>"
url("");
Philippe Wittenbergh wrote:
On Sep 29, 2015, at 12:27, Crest Christopher<crestchristop...@gmail.com> wrote:
When using @font-family is it placed within the rule as such;
<html tag> {@font-family {font-family properties} } ?
Hmm, there is no such thing as a @font-family at-ruleā¦
Do you mean the font-family property, which takes a list of font-families as
value and that you can declare on any selector you want.
Or do you mean the @font-face at-rule, which is used to link to a downloadable
font ? You don't declare that on any element or selector. It is a sort of
container block that at minimum contains a source for the font and a descriptor
@font-face {
font-family: 'my ugly font'; /* descriptor */
src: url(/path/to/my-ugly-font.woff) format('woff');
}
(I usually insert that near the top of my stylesheets, but it can go any place)
Philippe
--
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/