Monday, 15 June 2015

javascript - jQuery Masonry - I want the div to scroll, not the page -



javascript - jQuery Masonry - I want the div to scroll, not the page -

let me describe i'm trying achieve. on left side of browser have types of check boxes , radio buttons used filter data. on right side i'm displaying info using jquery masonry. when info set big have scroll downwards on page. want specify height on div , scroll downwards on users can see filter choices @ times. has done masonry? i've "googled" on several different occasions , can't seem find has done this.

i cannot explain why worked, worked purely own purposes.

<style type="text/css"> #results {overflow: auto;} </style> <script type="text/javascript"> $(function () { $("#results").masonry({ itemselector : '.item', isfitwidth: true, isanimated: true }).css("height", "450px"); </script>

i haven't looked @ in chrome yet i'll testing more thoroughly before rolling out.

javascript jquery jquery-plugins jquery-masonry

No comments:

Post a Comment