Things You'll Need:
- An HTML page
- A stylesheet
-
Step 1
display:table makes the element act like a table element. If you nest rows or columns of grids within this element, you should use one or more of the properties described next.
-
Step 2
display:table-row makes the element act like a table row element. It is possible to use display:table-row effectively without having it nested in an element set to display:table. This is because the browser assumes the existence of an "anonymous" table element and behaves as if it were there. (See Tips below for more about "anonymous" elements.) Remember, you aren't creating an actual table of tabular data; you are merely creating a grid-like display.
-
Step 3
display:table-cell makes the element act like a table cell element. It is possible to use display:table-cell effectively without having the element nested in an element set to display:table-row or display:table.
-
Step 4
display:table-row-group makes the element act like a table row group element. Use it for an element that groups one or more rows. It's the CSS way of expressing what tbody does in HTML.
-
Step 5
display:table-header-group makes the element act like a table header row group element. It's the CSS way of expressing what thead does in HTML. With CSS, the table-header-group is always displayed before all other rows and rowgroups and after any top captions.
-
Step 6
display:table-footer-group makes the element act like a table footer row group element. With CSS, the table-footer-group does what tfoot does in HTML. The table-footer-group is always displayed after all other rows and rowgroups and before any bottom captions. Printers may repeat footer rows on each page spanned by a table.
-
Step 7
display:table-caption makes the element act like a table caption element.
-
Step 8
display:table-column makes the element act like a table column element. It's the CSS way of expressing what col does in HTML.
-
Step 9
display:table-column-group makes the element act like a table column group. Use it to group one or more columns. It's the CSS way of expressing what colgroup does in HTML.










Comments
thesuraj said
on 12/15/2008 thanks for sharing, css is a rather tedious thing
regards,
suraj shrestha