title: Making A Nested Div Scrollable For A Mobile Site
body: <p>Is it possible to create a scrollable nested div on a jQuery mobile site? Basically I want a fixed header and footer but the middle section to be scrollable. I tried setting overflow:scroll (and I've set the width and height of the div) but it doesn't seem to work correctly in my iOS simulator. (I would do a jsFiddle but it doesn't work for the jQuery mobile stuff)</p>
  
  <p>Here's the HTML:</p>
  
  <pre><code>&lt;body&gt; 
  &lt;div data-role="page"&gt;
     &lt;div data-role="header"&gt;
     &lt;div id="header_image"&gt;
        &lt;img src="images/top_logo.png" /&gt;
     &lt;/div&gt;
     &lt;/div&gt;&lt;!-- /header --&gt;
         &lt;div id="content_bg"&gt;
         &lt;div data-role="content"&gt;
          &lt;p&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;/p&gt;
          &lt;p&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;/p&gt;
          &lt;p&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;/p&gt;
     &lt;/div&gt;&lt;!-- /content --&gt;
     &lt;/div&gt;&lt;!-- /content_bg --&gt;
     &lt;div data-role="footer" data-theme="b"&gt;
     &lt;div id="footer_text"&gt;
        &lt;center&gt;&lt;h4&gt;Page Footer&lt;/h4&gt;&lt;/center&gt;
     &lt;/div&gt;&lt;!-- /footer_text --&gt;
     &lt;/div&gt;&lt;!-- /footer --&gt;
     &lt;/div&gt;&lt;!-- /page --&gt;
  </code></pre>
  
  <p>Here's the relevant CSS:</p>
  
  <pre><code>#content_bg{
      background-color:#0038a5;
      height:310px;
      width:100%;
      text-size:11px;
      color:white;
      overflow: scroll;
      }
  </code></pre>
  
  <p>Thanks for any light you can shine on this problem!</p>