title: How to make submenu push content down
body: <p>I'm trying to figure out how to toggle the display of a submenu, opened on clicking a top menu item, and making it relatively positioned so that it pushes content down as it animates open, and also goes full browser width. This also has to happen in a way that keeps the top level menu intact, which is what I'm finding tricky to implement. Here's my attempt here:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jQuery("#nav &gt; li").click(function(e) {
    e.preventDefault();
  
    jQuery(this).find('ul').slideToggle("slow");
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.header-container {
    position: relative;
  }
  .main-nav #nav {
    text-align: center;
    margin: 0;
  }
  .main-nav #nav &gt; li {
    display: inline-block;
    list-style: none;
  }
  .main-nav #nav &gt; li ul {
    display: none;
    background: blue;
  }
  .wrapper {
    background: red;
    min-height: 500px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="header-container"&gt;
    &lt;header class="main-header"&gt;
      &lt;nav role="navigation" class="main-nav"&gt;
        &lt;ul id="nav"&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;Link 1&lt;/a&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;a href="#"&gt;Link&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;a href="#"&gt;Link&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;a href="#"&gt;Link&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;a href="#"&gt;Link&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;a href="#"&gt;Link&lt;/a&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;a href="#"&gt;Link&lt;/a&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;Link&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;Link&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;Link&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
    &lt;/header&gt;
  &lt;/div&gt;
  &lt;div class="wrapper"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>