Tables

The table shortcode allows you to display a styled table. The table HTML should be between the opening and closing shortcodes. The options for this shortcode are shown below.

Option Default Example Description
id (empty) id="my_table" Set the id attribute of the wrapper div surrounding the table
width (empty) width="200px" Set the CSS width of the table

Example

[table id="my_table" width="250px"]
<table>
     <tr>
         <td>Column 1 heading</td>
         <td>Column 2 heading</td>
     </tr>
     <tr>
         <td>Cell 1-1</td>
         <td>Cell 1-2</td>
     </tr>
     <tr>
         <td>Cell 2-1</td>
         <td>Cell 2-2</td>
     </tr>
</table>
[/table]

Still having trouble? Head over to the forums.

Forums