CSS Property Value How to - display: table-row;








Question

We would like to know how to display: table-row;.

Answer


<!--from   ww  w . j  a  va  2s .com-->
<!DOCTYPE html>
<html>
<head>
</head>
<body>
  <div style='display: table; width: 100%; height: 100%'>
    <div style='height: 100px; display: table-row;'>
      <div style="border: solid; display: table-cell;"></div>
    </div>
    <div style='height: 100%; display: table-row;'>
      <div style="border: solid; display: table-cell;"></div>
    </div>
  </div>
</body>
</html>

The code above is rendered as follows: