adding a table
-
Because the default editor (Tinymce) has no table facility, I’ve setup a table in the html part like this :
———>
<table style=”border-right: 3px outset orange; border-bottom: 3px outset orange; width: 220px; float: left; margin-right: 10px; font-size: 9pt; border-collapse: collapse;” border=”0″ summary=”measure-table”>
<tbody>
<tr style=”background-color:#FDF9F1;”>
<td style=”width: 20%; font-size: 9pt;”>xxs</td>
<td style=”width: 40%; font-size: 8pt;”>M 70-78</td>
<td style=”width: 40%; font-size: 8pt;”>V 66-74</td>
</tr>
<tr style=”background-color:#CCCCCC;”>
<td style=”width: 20%; font-size: 9pt;”>xs</td>
<td style=”width: 40%; font-size: 8pt;”>M 78-86</td>
<td style=”width: 40%; font-size: 8pt;”>V 74-82</td>
</tr>
<tr style=”background-color:#FDF9F1;”>
<td style=”width: 20%; font-size: 9pt;”>s</td>
<td style=”width: 40%; font-size: 8pt;”>M 86-94</td>
<td style=”width: 40%; font-size: 8pt;”>V 82-90</td>
</tr>
<tr style=”background-color:#CCCCCC;”>
<td style=”width: 20%; font-size: 9pt;”>m</td>
<td style=”width: 40%; font-size: 8pt;”>M 94-102</td>
<td style=”width: 40%; font-size: 8pt;”>V 90-98</td>
</tr>
<tr style=”background-color:#FDF9F1;”>
<td style=”width: 20%; font-size: 9pt;”>l</td>
<td style=”width: 40%; font-size: 8pt;”>M 102-110</td>
<td style=”width: 40%; font-size: 8pt;”>V 98-106</td>
</tr>
<tr style=”background-color:#CCCCCC;”>
<td style=”width: 20%; font-size: 9pt;”>xl</td>
<td style=”width: 40%; font-size: 8pt;”>M 110-118</td>
<td style=”width: 40%; font-size: 8pt;”>V 107-119</td>
</tr>
<tr style=”background-color:#FDF9F1;”>
<td style=”width: 20%; font-size: 9pt;”>xxl</td>
<td style=”width: 40%; font-size: 8pt;”>M 118-129</td>
<td style=”width: 40%; font-size: 8pt;”>V 119-131</td>
</tr>
<tr style=”background-color:#CCCCCC;”>
<td></td>
<td></td>
<td></td>
</tr>
<tr style=”background-color:#FDF9F1;”>
<td style=”width: 20%; font-size: 9pt;”>3xl</td>
<td style=”width: 40%; font-size: 8pt;”>M 129-141</td>
<td style=”width: 40%; font-size: 8pt;”>V 131-143</td>
</tr>
<tr style=”background-color:#CCCCCC;”>
<td style=”width: 20%; font-size: 9pt;”>4xl</td>
<td style=”width: 40%; font-size: 8pt;”>M 141-154</td>
<td style=”width: 40%; font-size: 8pt;”>V 143-155</td>
</tr>
<tr style=”background-color:#FDF9F1;”>
<td style=”width: 20%; font-size: 9pt;”>5xl</td>
<td style=”width: 40%; font-size: 8pt;”>M 154-166</td>
<td style=”width: 40%; font-size: 8pt;”>V 155-167</td>
</tr>
</tbody></table>
<——–In the WYSIWYG-part of the editor it looks completely correct, every row has it’s own background-color.
Only displaying after publish : the table has one – other – color, each row the same, and only if one moves the mouse over the table, hovering the row will result in a specific other color.
Has WordPress it’s own hidden format for table – layout ???
- The topic ‘adding a table’ is closed to new replies.