Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*position horizontal scroll bar at center of DIV*/
- function centerHScrollBar(){
- var outerContent = $('.product-view');
- var innerContent = $('.pillow-contain-show');
- outerContent.scrollLeft( (innerContent.width() - outerContent.width()) / 2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement