$.fn.extend({
scrollMeDown: function() {
$(this).scrollTop($(this).prop('scrollHeight'));
},
scrollAllDown: function(selector) {
$(selector).each(function(){
$(this).scrollMeDown();
})
}
})
$(window).on('load resize', function() {
$().scrollAllDown('.scrollMeDown');
});
body {
margin: 0;
padding: 0;
}
.container {
margin: 0;
padding: 0;
display: flex;
box-sizing: border-box;
align-content: stretch;
}
.scrollMeDown {
max-height: 100vh;
overflow-y: auto;
flex: 0 1 19em;
max-width: 50vw;
padding: 0 1em;
box-sizing: border-box;
margin: 0;
}
<div class="container">
<div class="scrollMeDown">
<p>Try-hard fap health goth put a bird on it, wayfarers slow-carb taxidermy tofu bitters pabst synth street art narwhal. Everyday carry neutra drinking vinegar kickstarter tote bag. +1 mustache selvage mixtape kale chips mlkshk. Helvetica iPhone yuccie 90's VHS, kogi kickstarter authentic quinoa umami. Narwhal pour-over bushwick migas. Cornhole ennui post-ironic everyday carry helvetica. Kitsch 3 wolf moon retro, fashion axe sartorial YOLO williamsburg.</p>
<p>Dreamcatcher you probably haven't heard of them +1, chartreuse mixtape fingerstache banh mi sustainable yuccie pitchfork. Vice hella health goth, kogi marfa brunch cray small batch semiotics authentic hammock whatever pug trust fund. Raw denim gluten-free taxidermy scenester butcher, yr kombucha ennui pop-up roof party bicycle rights. Intelligentsia four loko viral, ethical chartreuse shabby chic mumblecore gastropub. 90's squid biodiesel direct trade bitters twee. Tilde DIY tousled green juice fanny pack, quinoa roof party kickstarter. Thundercats pork belly chambray stumptown chillwave, shabby chic ramps cardigan.</p>
</div>
<div class="scrollMeDown">
<p>Try-hard fap health goth put a bird on it, wayfarers slow-carb taxidermy tofu bitters pabst synth street art narwhal. Everyday carry neutra drinking vinegar kickstarter tote bag. +1 mustache selvage mixtape kale chips mlkshk. Helvetica iPhone yuccie 90's VHS, kogi kickstarter authentic quinoa umami. Narwhal pour-over bushwick migas. Cornhole ennui post-ironic everyday carry helvetica. Kitsch 3 wolf moon retro, fashion axe sartorial YOLO williamsburg.</p>
<p>Dreamcatcher you probably haven't heard of them +1, chartreuse mixtape fingerstache banh mi sustainable yuccie pitchfork. Vice hella health goth, kogi marfa brunch cray small batch semiotics authentic hammock whatever pug trust fund. Raw denim gluten-free taxidermy scenester butcher, yr kombucha ennui pop-up roof party bicycle rights. Intelligentsia four loko viral, ethical chartreuse shabby chic mumblecore gastropub. 90's squid biodiesel direct trade bitters twee. Tilde DIY tousled green juice fanny pack, quinoa roof party kickstarter. Thundercats pork belly chambray stumptown chillwave, shabby chic ramps cardigan.</p>
<p>Pitchfork semiotics 90's, twee sartorial fingerstache slow-carb mixtape typewriter narwhal shoreditch godard. Beard yuccie green juice heirloom, deep v VHS austin normcore ethical organic health goth. Pickled literally messenger bag tumblr +1 crucifix. Forage green juice actually semiotics fashion axe, marfa chambray hashtag readymade. Franzen swag leggings, irony kogi gochujang art party. Cronut pork belly intelligentsia XOXO, gochujang ethical sriracha artisan squid. Tousled church-key offal flexitarian retro kitsch.</p>
<p>Knausgaard bushwick fap, normcore cronut sustainable beard portland shabby chic quinoa semiotics yr cliche microdosing lo-fi. Kale chips kitsch mumblecore YOLO quinoa, DIY twee artisan authentic. Franzen +1 pinterest, godard slow-carb ramps cornhole ennui occupy butcher ugh PBR&B readymade pour-over. Echo park tacos health goth williamsburg mlkshk, umami viral fap tousled. Mixtape plaid etsy authentic, paleo blog forage gastropub. Master cleanse mixtape brunch chartreuse pabst dreamcatcher craft beer, truffaut slow-carb VHS 8-bit williamsburg beard swag shabby chic. Flannel next level lumbersexual, heirloom lo-fi gochujang tofu.</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>