Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div id="area1">
    div id="area1"
  </div>
  <div id="area2">
    div id="area2"
    <div id="menubar">
      div id="menubar"
    </div>
  </div>
</body>
</html>
 
div, body {
  border: solid red 1px;
}
#area1, #area2 {
  position: relative;
  height: 100px;
  margin-top: 10px;
}
#menubar {
  width: 80px;
  height: 40px;
  position: absolute;
  top: 10px;
  right: 20px;
}
Output 300px

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

Dismiss x
public
Bin info
lubaochuanpro
0viewers