jQuery Mobile 2-page Base Fiddle

by hellosze

HTML

<script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css">
<div data-role="page" id="p1"> 
    <div  data-role="header" id="header">This is a header</div> 
    
    <div  data-role="content">
        <a href="#p2" data-role="button">Go To Page 2</a>
    </div> 
    
    <div  data-role="footer"><h4>Footer</h4></div> 
</div> 


<div data-role="page" id="p2">
    <div  data-role="header" data-rel="back"><h1>Header Page 2</h1></div>
    
    <div  data-role="content">
        <p>This is page2</p>
    </div>
    
    <div  data-role="footer"><h4>Footer</h4></div>
</div>

CSS

#header { height: 40px; line-height: 40px; text-align: center; }