title: div width 100% +10px: relative to parent?
body: <p>I have a ul/li menu with display:table/table-cell:auto layout, stretched to fill the container and distribute horizontal space between menu items. I have to align an additional UI element to the last menu item. I can achieve this by adding that element as a child of the last li element and making it 100% wide.</p>
  
  <p>However, I need to position this UI element (language selector) partially outside of the main content, so I position this by a relative right:-10px. But the side effect is that the left edge of the selector moves to the right, compared to the menu element. Normally I'd increase the selector div's width by 10px, but since it's 100%, I can't do that. And the parent li's width is determined by its text content.</p>
  
  <p>Is there a way to get this right using pure css? I can't add padding on the selector, because I need its child content to fill the whole div.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="menu"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;first&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;second&lt;/a&gt;
              &lt;div id="selector"&gt;
                  &lt;a href="#"&gt;EN&lt;/a&gt;
                  &lt;a href="#"&gt;FR&lt;/a&gt;
              &lt;/div&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here's a working example:
  <a href="http://jsfiddle.net/hJXng/13/" rel="nofollow noreferrer">http://jsfiddle.net/hJXng/13/</a></p>