title: So DOM scrollIntoView aligns top/bottom, but what about left/right?
body: <p>I would like to scroll horizontally the given element. The only way I find is using ScrollIntoView DOM method, which allows either align the element's bottom with the view bottom or the top - with the view top.</p>
  
  <p>But what if the element is OK with respect to the Y axis, and I only want to scroll it horizontally? How can I align its left with the view left or its right with the view right?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is more context. I have a YUI table with a horizontal scrollbar. I wish to scroll it programmatically to a certain TD node. I do not think <code>window.scrollTo</code> is of any help to me, since the scrollbar is on a div element, not on the whole page.</p>
  
  <p><strong>EDIT2</strong></p>
  
  <p>Turns out there is a duplicate SO question with the right answer - <a href="https://stackoverflow.com/questions/10634898/how-can-i-scroll-programmatically-a-div-with-its-own-scrollbars">How can I scroll programmatically a div with its own scrollbars?</a></p>
  
  <p>Voting to close mine.</p>