Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<title>JS Bin</title>
<style>
  
  .element {
    min-height: 20px;
    min-width: 30px;
    background: #999;
  }
  
  .test {
    height:100%;
    background:lime;
  }
</style>
</head>
<body>
  <div class="element"
    <div class="test">2</div>
  </div>
</body>
</html>
 
if (document.getElementById('hello')) {
  document.getElementById('hello').innerHTML = 'Hello World - this was inserted using JavaScript';
}
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