forked from kunalvarma05/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1 lines (1 loc) · 5.93 KB
/
Copy pathindex.html
File metadata and controls
1 lines (1 loc) · 5.93 KB
1
--- layout: single property_name: font-family ---<section id="font-family" class="property"><header class="property-header"><nav class="property-links"><a class="property-links-direct" href="{{site.url}}/property/font-family/" data-property-name="font-family" data-tooltip="Single page for this property" target="_blank">Link</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-family">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-family" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="{{site.url}}/#font-family"><span>#</span>font-family</a></h2><div class="property-description"></div></header><style type="text/css">.font-family { font-size: 1.5em;line-height: 1.2; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: "Source Sans Pro", "Arial", sans-serif;">font-family: "Source Sans Pro", "Arial", sans-serif;</code></p><div class="example-description"><p>When using <strong>multiple</strong> values, the <code>font-family</code> list of <strong>font families</strong> defines the <strong>priority</strong> in which the browser should choose the font family.</p><p>The browser will look for each family on the user's <strong>computer</strong> and in any <strong>@font-face</strong> resource.</p><p>The list is prioritized from <strong>left</strong> to <strong>right</strong>: it will use the first value if it's available, or go to the next one, until the end of the list is reached. The <strong>default</strong> font family is defined by the browser preferences.</p><p>In this example, the browser will try to use <code>Source Sans Pro</code> if it's available. If it can't find it, it will try to use <code>Arial</code>. If it's not available either, it will use the browser's <code>sans-serif</code> font.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-source-sans-pro-arial-sans-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-source-sans-pro-arial-sans-serif{ font-family:"Source Sans Pro", "Arial", sans-serif;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: serif;">font-family: serif;</code></p><div class="example-description"><p>The browser will use a <strong>serif</strong> font family: all characters have <strong>stroke endings</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-serif{ font-family:serif;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: sans-serif;">font-family: sans-serif;</code></p><div class="example-description"><p>The browser will use a <strong>sans-serif</strong> font family: <strong>no</strong> character has stroke endings.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-sans-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-sans-serif{ font-family:sans-serif;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: monospace;">font-family: monospace;</code></p><div class="example-description"><p>The browser will use a <strong>monospace</strong> font family: all characters have the <strong>same width</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-monospace">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-monospace{ font-family:monospace;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: cursive;">font-family: cursive;</code></p><div class="example-description"><p>The browser will use a <strong>cursive</strong> font family.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-cursive">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-cursive{ font-family:cursive;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: fantasy;">font-family: fantasy;</code></p><div class="example-description"><p>The browser will use a <strong>fantasy</strong> font family.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-fantasy">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-fantasy{ font-family:fantasy;}</style></section></section>