javascript - scrollLeft with JQuery & Wrapper Width doesn't work -


i still have bug here.

here got informations sliding horizontally jquery: scrollleft: end of main div not offset().left

my site:

xxx

on index page there 2 divs

on print page there 3 divs xxx

i set width 6000px can add more blog post automatically display inline.

but heres bug, if have 6000px everywhere can scroll right side, blogpost go away.

i hope understand.

i need still problem!

daniel

add bottom of css, , should fix issues.

.blog {   min-height: 382px; } 

and

add script bottom of each page have horizontal scrolling, , when page done loading fix width dynamically.

<script type="text/javascript">   var resizewidth = function() {     var numitems = $('.items-row').length;     var divwidth = $('.items-row').outerwidth();     var offset = ($(window).width() - divwidth) / 2;     $("#incontent").css('width', (numitems * divwidth + offset)  + 'px');       }   $(document).ready(function() {     resizewidth();   });   $(window).resize(function(){     resizewidth();   }) </script> 

Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -