Table Styling
The Table Styling shortcode for WordPress can be used to add styling options to a standard HTML table, like alternate row/column colors or first row/firs column colors. Check below for example implementations and shortcode documentation:
Table Styling Examples
| Header 1 | Header 2 |
|---|---|
| Data 1 | Data 2 |
| Data 3 | Data 4 |
| Data 5 | Data 6 |
Table Styling Shortcodes
Table Styling Shortcode
[x3m-tablestyle alternate-rows="#FAF1E6;#FDFAF6"]
< table HTML code here >
[/x3m-tablestyle]If you need inspiration on alternate colors, check the color palletes to choose something that fits your website design.
Table Styling Documentation
Here are the shortcode option settings available for Table Styling:
| Shortcode Settings | Details |
|---|---|
| alternate-rows=”yellow;white”
optional |
This is used to set alternate colors for table rows. First color is applied to first row, second color is applied to second row.
Color names or HEX color codes can be used to set the desired color. |
| alternate-columns=”yellow;white”
optional |
This is used to set alternate colors for table columns. First color is applied to first column, second color is applied to second column.
Color names or HEX color codes can be used to set the desired color. |
| first-row=”yellow”
optional |
This is used to set color for first table row.
Color names or HEX color codes can be used to set the desired color. |
| first-column=”yellow”
optional |
This is used to set color for first table column.
Color names or HEX color codes can be used to set the desired color. |