Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
    <div class="outer">
      <div class="inner">
        Your Text ....
      </div>
    </div>
</body>
</html>
 
    .outer {
         overflow-x: hidden;
         overflow-y: auto;
         text-align: center;
         position: fixed;
         top: 0;
         left: 0;
         bottom: 0;
         right: 0;
    }
    .outer:after {
         content: "\a0 ";
         position: relative;
         display: inline-block;
         vertical-align: middle;
         top: 0px;
         left: 0px;
         width: 0px;
         height: 100%;
    }
    .inner {
         display: inline-block;
         vertical-align: middle;
         width: 70%;
         min-height: 100px;
         background: red;
    }
Output 300px

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