title: jQuery/JavaScript collision detection
body: <p>How to detect if two <code>&lt;div&gt;</code> elements have collided?</p>
  
  <p>The two divs are simple coloured boxes travelling perpendicular to each other, so no complicated shapes or angles.</p>