title: Setting offset of an element with jQuery relative to parent
body: <p>I'm trying to set offset (top and left) of an element relative to parent.</p>
  
  <p>I have a container with position relative and the element that i must position with display absolute. How can i set top and left of the absolute element? Offset set the top and left related to document and i didn't need it.</p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT:
  this is my code:</p>
  
  <pre><code>var styles = {
          width: 200,
          height: 200,
          position: 'absolute',
          top: 10,
          left: 20
      };
  $imgScaledCircle.attr('src', pathimg).css(styles).addClass('active');
  </code></pre>
  
  <p>It set all proprerties expect top and left. I didn't understand why.</p>