title: Javascript - Make div sliding with buttons
body: <p>I've made a container around the car pictures, and use <code>overflow-y: scroll</code> so I can scroll through them. How can I make it so I have two buttons I can click so I can scroll through them with buttons via javascript or jquery?
  <a href="https://i.stack.imgur.com/kIuYM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kIuYM.jpg" alt="enter image description here"></a></p>
  
  <p>Current html is:</p>
  
  <pre><code>&lt;div  class="event_container"&gt;
  
              &lt;a href="/index.php?con=events&amp;id=5"&gt;
          &lt;div style="display: inline-block; background-image: url('img/events/event5.jpg')" class=""&gt;
              &lt;p&gt;Kør med de store!&lt;/p&gt;
              &lt;p&gt;18-01-2017&lt;/p&gt;
              &lt;div style="display: inline-block" class="tile"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/a&gt;
                  &lt;a href="/index.php?con=events&amp;id=3"&gt;
          &lt;div style="display: inline-block; background-image: url('img/events/event3.jpg')" class=""&gt;
              &lt;p&gt;Den nye FIAT 500!&lt;/p&gt;
              &lt;p&gt;24-01-2017&lt;/p&gt;
              &lt;div style="display: inline-block" class="tile"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/a&gt;
                  &lt;a href="/index.php?con=events&amp;id=1"&gt;
          &lt;div style="display: inline-block; background-image: url('img/events/event1.jpg')" class=""&gt;
              &lt;p&gt;Event 1&lt;/p&gt;
              &lt;p&gt;30-04-2017&lt;/p&gt;
              &lt;div style="display: inline-block" class="tile"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/a&gt;
                  &lt;a href="/index.php?con=events&amp;id=2"&gt;
          &lt;div style="display: inline-block; background-image: url('img/events/event2.jpg')" class=""&gt;
              &lt;p&gt;Test kør bughatti!&lt;/p&gt;
              &lt;p&gt;03-06-2017&lt;/p&gt;
              &lt;div style="display: inline-block" class="tile"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/a&gt;
                  &lt;a href="/index.php?con=events&amp;id=4"&gt;
          &lt;div style="display: inline-block; background-image: url('img/events/event4.jpg')" class=""&gt;
              &lt;p&gt;Skal du køre suziki?&lt;/p&gt;
              &lt;p&gt;30-06-2017&lt;/p&gt;
              &lt;div style="display: inline-block" class="tile"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/a&gt;
  </code></pre>
  
  <p></p>