title: Can JQuery detect the last element on a line before it wraps on the second line?
body: <pre><code>    &lt;style&gt;
      .ms_menu ul{list-style:none;}
      .ms_menu ul li{float:left; padding:5px; border-right:1px solid #000000;}
      .ms_menu ul li:last-of-type{border-right:none;}
      &lt;/style&gt;
  </code></pre>
  
  <p>example html:</p>
  
  <pre><code>    &lt;div class="ms_menu"&gt;
       &lt;ul&gt;
         &lt;li&gt;menu1&lt;/li&gt;
         &lt;li&gt;menu2&lt;/li&gt;
         &lt;li&gt;menu3&lt;/li&gt;
         &lt;li&gt;menu4&lt;/li&gt;
         &lt;li&gt;menu5&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I have a top nav menu which contains a UL with LI's floated left.</p>
  
  <p>Each LI has a CSS style {border-right 1px solid} which acts as a separator between each menu option and I have used the CSS selector last-of-type to remove the border-right on the last LI.</p>
  
  <p>This all looks great until the browser window is re-sized and some of the LI's drop down on to a second line.  The last-child styling rule still applies as required but at this point I also want to remove the border-right from the last LI before it wraps down onto the second line.</p>
  
  <p>Is there a jQuery or general Javascript way of detecting the last element on a line before a word-wrap/line break?</p>