Weird tab height when using side menu.

Weird tab height when using side menu.

When using the following html5 structure - and jquery ui tabs -> the tab headers are showing as 
the same height as the side menu:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title goes here!</title>
  6. <link rel="stylesheet" href="style/reset.css" type="text/css" />
  7. <link rel="stylesheet" href="style/main.css" type="text/css" />
  8. <!--[if lt IE 9]>
  9. <script  src="scripts/html5shiv.min.js"></script>
  10. <![endif]-->
  11. <script src="scripts/jquery-1.10.2.min.js"></script>
  12. <link rel="stylesheet" href="style/smoothness/jquery-ui-1.10.4.min.css" type="text/css" />
  13. <script src="scripts/jquery-ui-1.10.4.min.js"></script>
  14. <script>
  15. $(function() {
  16. $("div#tabs", "div#wrapper > section").tabs();
  17. });
  18. </script>
  19.   
  20. <script type="text/javascript">
  21. $(document).ready(function() {
  22. $('nav > ul > li:has("ul")').children('a')
  23. .attr('href', '#')
  24. .click(function(){
  25. $(this).siblings('ul').slideToggle();
  26. return false;
  27. });
  28. });
  29. </script>
  30. </head>
  31. <body>
  32. <header>
  33. <h1>Main Header</h1> 
  34. </header>
  35. <nav><!-- Breadcrumbs not used! --></nav>
  36. <div id="wrapper">
  37. <!-- Main Menu -->
  38. <nav>
  39. <ul>
  40. <li><a id="Menu1" href="#">Menu Item 1</a></li>
  41. <li><a id="Menu2" href="#">Menu Item 2</a></li>
  42. <li><a id="Menu3" href="#">Menu Item 3</a></li>
  43. <li><a id="Menu4" href="#">Menu Item 4</a></li>
  44. <li>
  45.                                                 <a id="Menu5" href="#">Menu Item 5</a></li>
  46.                                                 <ul>
  47.                                                       <li><a id="SubMenu1" href="#">Sub Menu Item 1</li>
  48.                                                       <li><a id="SubMenu2" href="#">Sub Menu Item 2</li>
  49.                                                       <li><a id="SubMenu3" href="#">Sub Menu Item 3</li>
  50. </ul>
  51. </li>
  52. </ul>
  53. </nav>
  54. <!-- Main Document Content -->
  55. <section class="smoothness">
  56. <div id="tabs">
  57. <ul>
  58. <li><a href='#Tab1'>Tab 1</a></li>
  59. <li><a href='#Tab2'>Tab 2</a></li>
  60. <li><a href='#Tab3'>Tab 3</a></li>
  61. </ul>
  62. <article id="Tab1">
  63. <h1>Tab 1</h1>
  64.                                                 <article>
  65.                                                  <p>Contents of Tab 1</p>
  66.                                                 </article>
  67.                                           </article>
  68. <article id="Tab2">
  69. <h1>Tab 2</h1>
  70.                                                 <article>
  71.                                                  <p>Contents of Tab 2</p>
  72.                                                 </article>
  73.                                           </article>
  74. <article id="Tab3">
  75. <h1>Tab 3</h1>
  76.                                                 <article>
  77.                                                  <p>Contents of Tab 3</p>
  78.                                                 </article>
  79.                                           </article>
  80. </div>
  81. </section>
  82. </div>
  83. <!-- Main Document Footer -->
  84. <footer>
  85. <a href="http://www.freevirtualservers.com/" target="_blank">Website Hosted by Free Virtual Servers</a>
  86. </footer>
  87. </body>
  88. </html>

    The CSS makes sure that the footer sticks to the bottom of the page.

    Any help is appreciated (I'll try and get a live version up when possible).