Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
  
  <title>jQuery Mobile test page</title>
  <meta charset=utf-8 />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  
  <link rel="stylesheet"  href="http://code.jquery.com/mobile/latest/jquery.mobile.css" /> 
  <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> 
  <script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script> 
  
  <style type="text/css">
@charset "utf-8";
/* Simple fluid media
   Note: Fluid media requires that you remove the media's height and width attributes from the HTML
*/
html, body { 
    height: 100%; 
}
#wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -44px; /* -44px being the size of the footer */
}
.header {
    position: absolute;
    width:100%;
    text-align: center;
}
.headerimg {
    width:100%;
    height:auto;
}
.footer {
    position: absolute;
    bottom: 0;
    left:0;
    width:100%;
    background-color: #000;
    color: #FFF;
    text-align: center;
    overflow: hidden;
    text-overflow: hidden;
    white-space:nowrap;
}
.banner {
    width:100%;
    min-width:240px;
    min-height:64px;
    max-width:720px;
    max-height:110px;
}
img, object, embed, video {
    max-width: 100%;
}
/* IE 6 does not support max-width so default to width 100% */
.ie6 img {
    width: 100%;
}
/*
    Dreamweaver Fluid Grid Properties
    ----------------------------------
    dw-num-cols-mobile:     5;
    dw-num-cols-tablet:     8;
    dw-num-cols-desktop:    10;
    dw-gutter-percentage:   25;
    
    Inspiration from "Responsive Web Design" by Ethan Marcotte 
    http://www.alistapart.com/articles/responsive-web-design
    
    and Golden Grid System by Joni Korpi
    http://goldengridsystem.com/
*/
/* Mobile Layout: 480px and below. */
.gridContainer {
    margin-left: auto;
    margin-right: auto;
    width: 87.36%;
    padding-left: 1.82%;
    padding-right: 1.82%;
}
.pages {
    clear: both;
    float: left;
    margin-left: 0;
    width: 100%;
    visibility:visible;
}
.mobile {
    display: block;
}
.mobiletablet {
    display: block;
}
.tablet {
    display: none;
}
.tabletweb {
    display: none;
}
.web {
    display: none;
}
/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */
@media only screen and (min-width: 481px) {
    .gridContainer {
        width: 90.675%;
        padding-left: 1.1625%;
        padding-right: 1.1625%;
    }
    .mobile {
        display: none;
    }
    .mobiletablet {
        display: block;
    }
    .tablet {
        display: block;
    }
    .tabletweb {
        display: block;
    }
    .web {
        display: none;
    }
}
/* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
@media only screen and (min-width: 769px) {
    .gridContainer {
        width: 88.2%;
        max-width: 1232px;
        padding-left: 0.9%;
        padding-right: 0.9%;
        margin: auto;
    }
    .mobile {
        display: none;
    }
    .mobiletablet {
        display: none;
    }
    .tablet {
        display: none;
    }
    .tabletweb {
        display: block;
    }
    .web {
        display: block;
    }
}
  </style>
</head>
  
  
<body>
    <div class="gridContainer clearfix">
        <div id="wrapper">
            <div class="PrivateClientPlugin" id="content">
              <div data-role="page" id="page1" class="pages">
                    <div class="header" data-role="header" data-id="mainheader" data-position="fixed">
                        <img class="updateOnLoad headerimg" src="http://jsfiddle.net/img/logo.png" border="0"/>
                    </div>
                    <div data-role="content" class="mobile">    
                        <ul data-role="listview">
                            <li><a href="#page2">Page Two (2)</a></li>
                            <li><a href="#page3">Page Three</a></li>
                            <li><a href="#page4">Page Four</a></li>
                        </ul>
                    </div>
                    <div data-role="content" class="tabletweb"> 
                        <a href="#page2">Page Two</a> <a href="#page3">Page Three</a> <a href="#page4">Page Four</a>
                    </div>
                </div>
              <div data-role="page" id="page2" class="pages">
                    <div class="header" data-role="header" data-id="mainheader" data-position="fixed">
                        <img class="headerimg" src="http://jsfiddle.net/img/logo.png" border="0"/>
                    </div>
                    <div data-role="content">   
                        Content<BR>
                        And more to<BR>
                        Show it's not<BR>
                        been laid out<BR>
                        properly.
                    </div>
                </div>
                
              <div data-role="page" id="page3" class="pages">
                    <div class="header" data-role="header" data-id="mainheader" data-position="fixed">
                        <img class="headerimg" src="http://jsfiddle.net/img/logo.png" border="0"/>
                    </div>
                    <div data-role="content">   
                        Content     
                    </div>
                </div>
                
              <div data-role="page" id="page4" class="pages">
                    <div class="header" data-role="header" data-id="mainheader" data-position="fixed">
                        <img class="headerimg" src="http://jsfiddle.net/img/logo.png" border="0"/>
                    </div>
                    <div data-role="content">   
                        Content     
                    </div>
                </div>
          </div>
        </div>
        <div class="MyAdNetwork footer">
            <h4>2012 &copy; Footer For Banners</h4>
        </div>
    </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers