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>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  body{
    background-color: #d2d2d2; 
  }
  #wrap{
    width: 960px;
    margin: 0 auto;
    position: relative;
  }
  #page{
    height: 2000px;
    background-color: #fff;
  }
  #ribbon{
    background-color: #00ff00;
    display: block;
    height: 50px;
    width: 980px;
    position: absolute;
    top: 50px;
    left: -10px;
  }
  #left{
    border-color: transparent green transparent transparent;
    border-style: solid;
    border-width: 0px 10px 15px 0px;
    width: 0px;
    height: 0px;
    display: block;
    position: absolute;
    top: 50px;
    left: 0px;
  }
  #right{
    border-color: transparent transparent transparent green;
    border-style: solid;
    border-width: 0px 10px 15px 10px;
    width: 0px;
    height: 0px;
    display: block;
    position: absolute;
    top: 50px;
    right: -10px;
  }
</style>
</head>
<body>
    <div id="ribbon"><div id="left"></div></div>
    <div id="page"></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