title: jquery get width of div to left side window
body: <p>And I want to get the width or distance or pixel that between the <code>div</code> and left side of of window/viewport.
  And another width again between the <code>div</code> to the right side of the window.
  I will use the width to create a left line and right line.
  But I am poor in jQuery, I try <code>offset</code> but seems nothing happen.
  So I back to 0 again so I didn't include fiddle here since I got nothing inside.
  But I have attached with the image link as below, to explain my question.
  Please help me on try to get the width, I can create the line myself.
  Thank you.</p>
  
  <p><a href="https://i.stack.imgur.com/YoQep.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YoQep.jpg" alt="enter image description here"></a></p>