Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, height=device-height, initial-scale=1, user-scalable=0, minimum-scale=1, maximum-scale=1, shrink-to-fit=no">
  <title>JS Bin</title>
</head>
<body>
     <div class="main">
      <div class="one">
        Top Panel
      </div>
      <div class="two">
        <input type='text' />
        Bottom Panel
      </div>
    </div>
  
</body>
</html>
 
body {
  padding: 0;
  margin: 0;
}
.main {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background: orange;
  
}
.main .one {
  background: red;
  color: white;
  
  position: fixed;
  width: 100vw;
  height: 50vh;
  min-height: 50vh;
  
  
  top:0;
  left:0;
  
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  
  align-items: center;
  justify-content: center;
  
  
  
}
.main .two {
  background: blue;
  color: white;
  
  position: fixed;
  width: 100vw;
  height: 50vh;
  min-height: 50vh;
  
  top: 50vh;
  left: 0;
  
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  
  align-items: center;
  justify-content: center; 
}
@media (orientation: landscape) {
  
  .main {
    width: 100wv;
  }
  
  .main .one {
    width: 50vw;
    height: 100vh;
    left:0;
    top:0;
  }
  
  .main .two {
    width: 50vw;
    height: 100vh;
    left: 50vw;
    top:0;
  }
  
  .main .two input {
    display: none;
  }
  
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers