Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>Old Answer</h1> <p>The New HTML</p> <pre><code>&lt;div id="songsListPage" data-role="page"&gt; &lt;table id="alphabets"&gt; &lt;!-- change "div" tag to "table" tag --&gt; &lt;tr&gt; &lt;td href="#"&gt;#&lt;/td&gt; &lt;!-- and "a" to "td" tag --&gt; &lt;td href="#"&gt;A&lt;/td&gt; &lt;td href="#"&gt;B&lt;/td&gt; &lt;td href="#"&gt;C&lt;/td&gt; &lt;td href="#"&gt;D&lt;/td&gt; &lt;td href="#"&gt;E&lt;/td&gt; &lt;td href="#"&gt;F&lt;/td&gt; &lt;td href="#"&gt;G&lt;/td&gt; &lt;td href="#"&gt;H&lt;/td&gt; &lt;td href="#"&gt;I&lt;/td&gt; &lt;td href="#"&gt;J&lt;/td&gt; &lt;td href="#"&gt;K&lt;/td&gt; &lt;td href="#"&gt;L&lt;/td&gt; &lt;td href="#"&gt;M&lt;/td&gt; &lt;td href="#"&gt;N&lt;/td&gt; &lt;td href="#"&gt;O&lt;/td&gt; &lt;td href="#"&gt;P&lt;/td&gt; &lt;td href="#"&gt;Q&lt;/td&gt; &lt;td href="#"&gt;R&lt;/td&gt; &lt;td href="#"&gt;S&lt;/td&gt; &lt;td href="#"&gt;T&lt;/td&gt; &lt;td href="#"&gt;U&lt;/td&gt; &lt;td href="#"&gt;V&lt;/td&gt; &lt;td href="#"&gt;W&lt;/td&gt; &lt;td href="#"&gt;X&lt;/td&gt; &lt;td href="#"&gt;Y&lt;/td&gt; &lt;td href="#"&gt;Z&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;div id="songs_list" data-role="content"&gt; &lt;ul id="songsList" data-role="listview" data-theme="a"&gt;&lt;/ul&gt; &lt;!-- list is populated dynamically --&gt; &lt;p&gt;This is songs page&lt;/p&gt; &lt;a href="player.html" id="playerBtn" data-role="button" class="ui-btn-active" &gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Updated CSS</p> <pre><code>#alphabets { background:#000000; display: block; padding: 5px; clear: both; height: auto; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: auto; &lt;!-- changed width from 200% to auto --&gt; overflow-x: auto; } #alphabets td{ color: #ffffff; font-size: large; margin-left: 5px; padding-left: 5px; padding-right: 5px;} &lt;!-- rest of the changes in css are for proper view (UI) like height: auto; padding-left: 5px; (in td) etc --&gt; </code></pre> <p><a href="http://jsfiddle.net/CXAWE/" rel="nofollow">http://jsfiddle.net/CXAWE/</a> (for those who do not want a TABLE TR TD solution)</p> <p>This will work perfectly in phone (android) browser. The Table TR works better for mobiles - it will and always has and continue to do so. I always use a TABLE for guaranteed results especially in this case.</p> <h1>Updated New Answer</h1> <p>HTML for any mobile solution.</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;HTML5 Alternative to Mobile WAP and iPad/iPhone etc&lt;/title&gt; &lt;!-- Mobile Web App Acceleration - Powered by WordCompress.net //--&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"/&gt; &lt;link rel="stylesheet" href="css/style.css" type="text/css" media="all, handheld" /&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="b"&gt; &lt;div id="content"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>CSS</p> <pre><code>body { overflow-x: hidden; } #b { margin: 1px; } #content { background: none repeat scroll 0 0 #FFFFFF; } </code></pre> <p>Notice <code>viewport</code> width is <code>device-width</code> and also notice that the body, has no width, and neither does the content. You can now guarantee that all phones will display 100%. You can change the <code>overflow</code> to <code>y</code> or <code>x</code> too.</p>
    singulars
    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.
    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