html, body { margin:0; padding:0; width: 100%; height: 100% } #map { position: absolute; bottom: 0; top: 0; width: 100%; height: 100% } .container { border: 1px solid rgba(0,0,0,0.15); box-shadow: 0 2px 3px rgba(0,0,0,0.06); border-radius: 3px; background: white; } .search { position: absolute; top: 20px; left: 20px; width: 400px; } .search-input { width: 100%; }