Note that there are some explanatory texts on larger screens.

plurals
  1. POFont-size in CSS not working
    primarykey
    data
    text
    <p>I am trying to specify the size of the text of buttons located in the footer of a JQuery Mobile application page (chart1). The class is named 'footer-button' and is styled in the code below. It doesn't matter what kind of values I specify (px, em or pt), the text size doesn't seem to change. Any ideas?</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.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.2.0/jquery.mobile-1.2.0.min.js"&gt;&lt;/script&gt; &lt;style&gt; .ui-page { background: #2f2d2d;} .footerBar{ min-height: 80px; } .footer-button{ min-height: 80px; font-size: 20; word-wrap: normal; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- code for the main page --&gt; &lt;div data-role="page" data-theme="b" id="main-page"&gt; &lt;div data-role="header" data-position="fixed"&gt; &lt;h1&gt;Data Collector&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;ul data-role="listview" data-inset="true"&gt; &lt;li data-role="list-divider"&gt;Collected Data Available:&lt;/li&gt; &lt;li&gt;&lt;a href="#chart1" id="btn1" data-transition="slide"&gt;Car&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Other 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Other 3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Other 4&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div data-role="footer" data-position="fixed"&gt; &lt;h4&gt;&amp;#169 KLH&lt;/h4&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- code for the chart 1 page --&gt; &lt;div data-role="page" data-theme="b" id="chart1"&gt; &lt;div data-role="header" data-tap-toggle="true" class="headerBar"&gt; &lt;a href="#main-page" data-icon="arrow-l" data-iconpos="left" data-transition="slide" data-direction="reverse"&gt;Back&lt;/a&gt; &lt;h1&gt;Car Crashes&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content" data-position="fixed"&gt; &lt;div id="containerYear"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div data-role="footer" data-position="fixed" class="footerBar"&gt; &lt;div data-role="navbar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#chart1" data-role="tab" class="ui-btn-active footer-button"&gt;Last 12 Months&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#chart2" data-role="tab" class="footer-button"&gt;Last 30 Days&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#chart3" data-role="tab" class="footer-button"&gt;Last 7 Days&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p> </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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