I would guess you need to display its inner elements as table-row and table-cell accordingly. For exmaple, the code below would act just like a regular table.
HTML Code:
<div style="display: table;">
<div style="display: table-row;">
<div style="display: table-cell;">
Cell #1
</div>
<div style="display: table-cell;">
Cell #2
</div>
</div>
<div style="display: table-row;">
<div style="display: table-cell;">
Cell #3
</div>
<div style="display: table-cell;">
Cell #4
</div>
</div>
</div>
Although it seems pointless to emulate a table with other elements when there already exists such tags; <table>, <tr>, <td>. In my opinion, tables should not be totally taboo as they seem to be today. They still serve a purpose and should be used when appropriate, just not for everything as they often were before.
So, in short, if what you're trying to do is emulate table behaviour, perhaps you should just use a regular table.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|