cssfonts-context.mustache revision 7b8680288e79cc11a4c20b66ce5c167619f1431f
0N/A <p>This example shows a page of HTML elements with CSS Reset and contextual CSS Fonts applied.</p>
0N/A <p>When CSS Fonts is included in a page it applies rules to all HTML elements via type selectors like this: <code>body {font-size:13px;}</code>. An alternate version, <code>cssfonts-context.css</code>, uses only descendent selectors like this: <code>.yui3-cssfonts-context {font-size:13px;}</code>. This means you can put that class value on a node in your document to choose which region(s) of your page CSS Fonts will be applied to.</p>
0N/A<p>In this example, only the middle block is within the context of CSS Fonts. The other two blocks are unaffected by CSS Fonts since their context is not one matched by the descendent selector of the contextual version of CSS Fonts.</p>
0N/A <a href="cssfonts-context-example.html" target="_blank" class="button">