Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try the following:</p> <p>Put your CSS inside a CSS file <code>your_css.css</code>, and make sure to define the fonts before:</p> <pre><code>@font-face { font-family: 'Roboto-Black'; src: url('./fonts/Roboto-Black.ttf'); } @font-face { font-family: 'Roboto-Light'; src: url('./fonts/Roboto-Light.ttf'); } p.basic-paragraph { font-family: "Minion Pro"; font-weight: normal; font-style: normal; font-size: 1em; text-decoration: none; font-variant: normal; text-indent: 0em; text-align: left; color: #FFFFFF; margin: 0em; } span.no-style-override-2 { font-family: "Roboto-Light"; } </code></pre> <p>Include your CSS file, in your HTML file <code>your_html.html</code>, after your references to jQuery Mobile.</p> <p><strong>Example:</strong></p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta name='viewport' content='minimum-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no'/&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" /&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="./css/test.css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- PAGE 1 --&gt; &lt;div id="page_1" data-role="page"&gt; &lt;div data-role="content"&gt; &lt;p class="basic-paragraph basic-paragraph-override"&gt;&lt;span class="no-style-override-2"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/span&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>PS:</strong> Pay attention to the path of your fonts, in your CSS file. The example above considers the following directory structure:</p> <ul> <li><code>your_html.html</code></li> <li><strong>css</strong> <ul> <li><code>your_css.css</code></li> <li><strong>fonts</strong> <ul> <li><code>Roboto-Black.ttf</code></li> <li><code>Roboto-Light.ttf</code></li> </ul></li> </ul></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload