HTML Element Style How to - Create div based table with varying dimensions


We would like to know how to create div based table with varying dimensions.


<!DOCTYPE html>
<style type='text/css'>
#main {<!--  w ww  .j  a v  a 2 s . co  m-->
  width: 50%;
  background: red;
  display: table;
  overflow: hidden;

#main>div {
  display: table-cell;
  text-align: center;
  background: yellow;
  box-sizing: border-box;
  border-right: 1px solid black;
  <div id="main">

The code above is rendered as follows: