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="width-100">
    <ul>
      <li>
        <div class="display-table">
          <div class="display-row">
            <div class="display-cell">a</div>
            <div class="display-cell">1</div>
          </div>
        </div>
      </li>
      <li>
        <div class="display-table">
          <div class="display-row">
            <div class="display-cell">b</div>
            <div class="display-cell">2</div>
          </div>
        </div>
      </li> 
    </ul>
  </div>
  
</body>
</html>
 
.width-100 {
  width: 100%;
}
li {
  display:inline;
}
.display-table {
  display:table;
  width: 100%;
}
.display-row {
  display:table-row;
}
.display-cell {
  display:table-cell;
  border:1px dashed red;
}
.display-cell:first-child {
  width: 50px;
}
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