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>
  <style>
    
.part {
  width: 400px;
  height: 80px;
  background-color: #ddd;
  margin-bottom: 100px;
}
.foo {
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  height: 80px;
  line-height: 80px;
  background-color: red;
}
.bar {
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  line-height: 80px;
  height: 80px;
  background-color: green;
}
  </style>
  <div class="part">
  <div class="foo"></div>
  <div class="bar">bar</div>
</div>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers