Merchants Heart CSS - Search/Map/List Structure

by Ben Clayton

HTML

<div class="container">



  <div class="search">
    SEARCH
  </div>

  <div class="map">

    <div class="mapinner">
      MAP
    </div>
  </div>
  <div class="list">
    RESULTS:<br> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf
    jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh
    jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/>    gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/> gfjkewh jfehwf jkf jkfhjke<br/>

  </div>


</div>

CSS

.container {
  position: relative;
}

.container .search {
  border: 1px solid red;
  margin: 10px;
}

.container .map {
  margin: 10px;
  border: 1px solid red;
  margin-bottom: 20px;
}

.container .mapinner {
  height: 30vw;
  background-color: gray;
}

.container .list {
  position: relative;
  margin: 10px;
  border: 1px solid red;
  top: 0px;
  height: inherit;
}

@media only screen and (min-width: 600px) {
  .container .search {
    position: relative;
    top: 40px;
    margin-left: 25px;
    margin-right: 70%;
  }
  .container .map {
    padding-left: 30%;
  }
  .container .list {
    top: calc(-30vw + 20px);
    margin-left: 25px;
    margin-right: 70%;
    height: calc(30vw - 50px);
    overflow: auto;
  }
}