If you're looking for the total width of the scrolling content, don't use .width() -- that will just tell you the width of the viewport that has scrollbars. Use $(...)[0].scrollWidth to get the total amount of content within the scrolling view.
Leave a comment on ytpete's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic