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 class="left">
  100 px wide!
  </div><!-- Notice there isn't a space between the divs! --><div class="right">
    Fills width!
  </div>
</body>
</html>
 
.left {
  display: inline-block;
  width: 100px;
  
  background: red;
  color: white;
}
.right {
  display: inline-block;
  width: calc(100% - 100px);
  
  background: blue;
  color: white;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers