title: jquery UI tabs width 100%
body: <p><img src="https://i.stack.imgur.com/EuAxZ.png" alt="enter image description here" />I have a need to use only 2 tabs in my application. So I want them to cover 100% of the width. Currently it aligns both tabls on left side and leave all kind of empty space on right side. What can I do so that both of my tabs cover 100% of the area.
  I am using jquery-ui-1.8.17.custom.css</p>
  <p>code</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt; 
          &lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css&quot; /&gt;
          &lt;script src=&quot;http://code.jquery.com/jquery-1.6.4.min.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js&quot;&gt;&lt;/script&gt;
          &lt;link type=&quot;text/css&quot; href=&quot;css/ui-lightness/jquery-ui-1.8.17.custom.css&quot; rel=&quot;stylesheet&quot; /&gt;   
          &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.7.1.min.js&quot;&gt;&lt;/script&gt;
          &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-ui-1.8.17.custom.min.js&quot;&gt;&lt;/script&gt;
          &lt;script type=&quot;text/javascript&quot;&gt;
          
              $(function(){
                  // Tabs
                  $('#tabs').tabs();
              });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div data-role=&quot;page&quot;&gt;
  
              &lt;div data-role=&quot;header&quot;&gt;
                  &lt;h1&gt;My Title&lt;/h1&gt;
              &lt;/div&gt;&lt;!-- /header --&gt;
  
              &lt;div data-role=&quot;content&quot;&gt;   
                  &lt;div id=&quot;tabs&quot;&gt;
                      &lt;ul&gt;
                          &lt;li&gt;&lt;a href=&quot;#tabs-1&quot;&gt;First&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=&quot;#tabs-2&quot;&gt;Second&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                      &lt;div id=&quot;tabs-1&quot;&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.&lt;/div&gt;
                      &lt;div id=&quot;tabs-2&quot;&gt;Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.&lt;/div&gt;
                  &lt;/div&gt;&lt;!-- Tabs --&gt; 
              &lt;/div&gt;&lt;!-- /content --&gt;
  
          &lt;/div&gt;&lt;!-- /page --&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>