On Sep 29, 2015, at 1:59 AM, Philippe Wittenbergh <e...@l-c-n.com> 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

And to further answer, it would be more appropriate to do...

<html>
<head>
<style type=""text/css">
@font-face {
font-family: 'my ugly font'; 
src: url('/path/to/my-ugly-font.woff') format('woff');
}
html {
font-family: 'my ugly font'; 
}
</style>
<head></head>
<body>
(...stuff...)
</body>
</html>

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.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/

Reply via email to