Use DIV to create a table cell : div table : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » div table »

 

Use DIV to create a table cell


 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <style type="text/css">
            html {
                display: table;
                border-spacing: 5px;
            }
            body {
                display: table-row;
            }
            div {
                display: table-cell;
                padding: 5px;
                border: thin solid black;
            }
        </style>
        <title> HTML display property  </title>
    </head>
    <body>
        <div> table cell </div>
        <div> table cell </div>
    </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Box Model
» div table