title: Getting the width of an html element in percent % with jQuery
body: <p>If I <code>alert</code> the element which has a css selector set to <code>width:100%</code> I get it's with in <code>px</code>, is there some way to get it in <code>%</code> as set from css, I need it to fix some script with fluid layouts.</p>
  
  <pre><code>// css
  .my-element {
      width:100%;
  }
  
  // javascript
  alert('width: '+$('.my-element').css('width'));
  // this alerts "width: 1116px" instead of "width: 100%"
  </code></pre>
  
  <p>Maybe something like this is always true?</p>
  
  <pre><code>alert($('.my-element').outerWidth() == $('.my-element').parent().outerWidth());
  </code></pre>