title: jquery masonry on ul with nested ul
body: <p>I'm trying to create a footer nav of a sitemap with levels nested within each other. i want to use masonry so the padding and margin is consistant and not changed depending on nested items. its firing masonry but its adding the relative style to the nested ul if i change the masonry call to select just the first() ul then nested li appear on one line.</p>
  
  <p>any ideas?</p>
  
  <pre><code> &lt;div id="links"&gt;
              &lt;ul &gt;
                  &lt;li class="box"&gt;&lt;a href="/Industries.aspx"  &gt;Industries&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="box"&gt;&lt;a href="/Services.aspx"  &gt;Services&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="box"&gt;&lt;a href="/Quality---Regulatory.aspx"  &gt;Quality &amp;amp; Regulatory&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="box"&gt;&lt;a href="/About.aspx"  &gt;About&lt;/a&gt;
                      &lt;ul &gt;
                          &lt;li class="box"&gt;&lt;a href="/About/Our-Story.aspx"  &gt;Our Story&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="box"&gt;&lt;a href="/About/Our-Mission.aspx"  &gt;Our Mission&lt;/a&gt;&lt;/li&gt;
                          &lt;li class="box"&gt;&lt;a href="/About/Our-Core-Values.aspx"  &gt;Our Core Values&lt;/a&gt;&lt;/li&gt;
                     &lt;/ul&gt;
                &lt;/li&gt;
                &lt;li class="box"&gt;&lt;a href="/News.aspx"  &gt;News&lt;/a&gt;
                     &lt;ul &gt;
                         &lt;li class="box"&gt;&lt;a href="/News/Events.aspx"  &gt;Events&lt;/a&gt;&lt;/li&gt;               
                     &lt;/ul&gt;
                &lt;/li&gt;
                &lt;li class="box"&gt;&lt;a href="/Careers.aspx"  &gt;Careers&lt;/a&gt;&lt;/li&gt;
                &lt;li class="box"&gt;&lt;a href="/Contact.aspx"  &gt;Contact&lt;/a&gt;&lt;/li&gt;
                &lt;li class="box"&gt;&lt;a href="/tests.aspx"  &gt;tests&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
         &lt;/div&gt;
  
   &lt;script type="text/javascript"&gt;
  
      $('#links ul').masonry({
  
          singleMode: true,
  
          // Disables measuring the width of each floated element.
          // Set to true if floated elements have the same width.
          // default: false
  
          columnWidth: 182,
  
          // Width in pixels of 1 column of your grid.
          // default: outer width of the first floated element.
  
          itemSelector: '.box:visible',
  
          // Additional selector to specify which elements inside
          // the wrapping element will be rearranged.
          // Required for Infinite Scroll with window resizing.
  
          resizeable: true,
  
          // Binds a Masonry call to window resizes 
          // so layout appears fluid.
          // default: true
  
          animate: false,
  
          // Animates layout rearrangements.
          // default: false
  
          saveOptions: true
  
          // Masonry will use the options from previous Masonry
          // calls by default, so you only have to enter in options once
          // default: true
      });
  &lt;/script&gt;
  </code></pre>
  
  <p></p>