title: Padding or margin value in pixels as integer using jQuery
body: <p>jQuery has height() en width() functions that returns the height or width in pixels as integer... </p>
  
  <p>How can I get a padding or margin value of an element <strong>in pixels and as integer</strong> using jQuery?</p>
  
  <p>My first idea was to do the following:</p>
  
  <pre><code>var padding = parseInt(jQuery("myId").css("padding-top"));
  </code></pre>
  
  <p>But if padding is given in ems for example, how can I get the value in pixels?</p>
  
  <hr>
  
  <p>Looking into the JSizes plugin suggested by Chris Pebble i realized that my own version was the right one :). jQuery returns always value in pixels, so just parsing it to integer was the solution.</p>
  
  <p>Thanks to Chris Pebble and Ian Robinson</p>