divs not displaying as a table

Posted by CoffeeCode on Stack Overflow See other posts from Stack Overflow or by CoffeeCode
Published on 2010-03-23T10:23:06Z Indexed on 2010/03/23 10:33 UTC
Read the original article Hit count: 547

Filed under:
|
|
|

i made a css:

DIV.TableContainer {
    display: table;
    background-color:Aqua;
    }

DIV.TableRow  {
    display: table-row;
    }

DIV.TableCell {
    display: table-cell;
   }

html page:

<div class="TableContainer">



<div class="TableRow">

    <div class="TableCell">
        <h4>Left Col</h4>
        <p>...</p>
    </div>

    <div class="TableCell">
        <h4>Right Col</h4>
        <p>...</p>
    </div>

    </div>
</div>

but it doesnt display as a table.
have i missed something???

© Stack Overflow or respective owner

Related posts about html

Related posts about css