title: jQuery .width() and css('width') returning invalid values
body: <p>I'm trying to get the width of a parent from an element. To do this I'm using:</p>
  
  <pre><code>parent = $("#"+id).parent().attr("id");
  parentWidth = $('#'+parent).width();
  </code></pre>
  
  <p>I've also tried:</p>
  
  <pre><code>parentWidth = $('#'+parent).css('width');
  </code></pre>
  
  <p>At first I used </p>
  
  <pre><code>$('#'+id).parent().width(); 
  </code></pre>
  
  <p>this didnt work either.</p>
  
  <p>The parent variable is correctly set, however, the width of a parents div is 90%, .width() returns 90, and .css('width') returns 90px. In my .css widht is set to 90%, i also tried adding it in the style tag in the element itself.</p>
  
  <pre><code>&lt;div id="tabs" style="height:90%;width:90%;"&gt;
  </code></pre>
  
  <p>in the CSS file:</p>
  
  <pre><code>#tabs{
  height:90%;
  width:90%;
  position:absolute;
  z-index:10;
  overflow:hidden;
  }
  </code></pre>
  
  <p>I keep getting 90 as return value. What am I doing wrong?
  Thanks</p>
  
  <p>This is the page I'm talking about: <a href="http://www.amsterdamslyceum.lelie.demodomein.com/index.php" rel="nofollow">http://www.amsterdamslyceum.lelie.demodomein.com/index.php</a>
  Don't mind the db errors, didnt set up the db on the host yet as I just started developing.</p>