<div style="display:table; width:100%;">
    <div style="display:table-caption; caption-side:bottom;">
      <div style="width:25px; height:40px; background:green;">
      </div>
    </div>
    <div style="display:table-footer-group;">
      <div style="display:table-cell; vertical-align:top;">
        <div style="height:240px;"></div>
      </div>
    </div>
    <div style="display:table-caption;">
      <div style="width:25px; height:40px; background:green;">
        <div style="height:220px;"></div>
    