<!DOCTYPE html>

<style type="text/css" media="screen">
  .container {
    display: inline-block;
    width: 200px; 
    height: 200px; 
    overflow: hidden;
    margin: 10px;
    border: 1px solid black;
  }
  
  .inner {
    width: 100%;
    height: 1000px;
    background-color: blue;
  }
  
  .nextto {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
  }

  .bottom {
    height: 50%;
    width: 100%;
    background-color: green;
  }
</style>
<div class="container" style="position: relative;">
  <div class="inner" style="position: relative;">
    <div class="bottom"></div>
  </div>
</div>
