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='wrap'>
  <p class='title'>Page header on top of background</p>
  <a class='link' href='http://www.google.com' target='_blank'>Google</a>
</div>
<ul class='page-header'>
  <li>home</li>
  <li>about</li>
  <li>book</li>
</ul>
</body>
</html>
 
.wrap {
  background: yellow;
  width: 400px;
  height: 400px;
}
.title {
  float: left;
}
.link {
  float: right;
  position:relative;
  z-index:10;
}
.wrap:after {
  clear: both;
}
.page-header {
  width: 400px;
  height: 50px;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  list-style: none;
  margin: 0;
}
.page-header li {
  
  display: inline-block;
  padding: 10px 10px;
}
Output

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

Dismiss x
public
Bin info
thanixpro
0viewers