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>
<style>
.background{
    background-color:#000;
    height: 400px;
    width: 100%;   
}
.TileText{
    position: relative;
    top: -135px;
    max-width: 200px;
    height: 80px;
    background-color: #FFF;
    color: #black;
    clear: both;
    padding-left: 10px; 
}
  
.TileText p { 
    position:absolute;
    display: table-cell;
    vertical-align: middle
    
  }
</style>
</head>
<body>
  <div class="background"> &nbsp; </div>
  <div class="TileText"><p>MyText - Another long, long, long text</p></div>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers