Dear all,
I have some problem in table style alignment. Here are two tables for your reference with HTML tags.
Please see table 1 picture with wrong alignment marked, but table 2 have same contents with right alignment which use   (EN SPACE) in <td> element.
All the table cells should be right aligned but center to the corresponding columns except the first column.
We have adjust the numerical data using  .
Is is possible using macro or JavaScript?
Table 1
Table 2
I have some problem in table style alignment. Here are two tables for your reference with HTML tags.
Please see table 1 picture with wrong alignment marked, but table 2 have same contents with right alignment which use   (EN SPACE) in <td> element.
All the table cells should be right aligned but center to the corresponding columns except the first column.
We have adjust the numerical data using  .
Is is possible using macro or JavaScript?
Table 1
Code: Select all
<table class="tbl-width">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="20%" />
</colgroup>
<thead>
<tr>
<th />
<th />
<th />
<th />
<th class="bdrbottom"><p class="center">Survival Index</p></th>
</tr>
<tr>
<th class="bdrbottom vbottom"><p class="center">Country</p></th>
<th class="bdrbottom vbottom"><p class="center">Number of educational centers in 1995</p></th>
<th class="bdrbottom vbottom"><p class="center">Number of educational centers closed since the beginning of FYA</p></th>
<th class="bdrbottom vbottom"><p class="center">Number of matriculated students in 1995</p></th>
<th class="bdrbottom vbottom"><p class="center">Educational centers closed in relation to the number of centers functioning in 1995</p></th>
</tr>
</thead>
<tbody>
<tr>
<td><p>Bolivia</p></td>
<td><p class="center">115</p></td>
<td><p class="center">5</p></td>
<td><p class="center">78, 576</p></td>
<td><p class="center">.95</p></td>
</tr>
<tr>
<td><p>Colombia</p></td>
<td><p class="center">54</p></td>
<td><p class="center">1</p></td>
<td><p class="center">35, 321</p></td>
<td><p class="center">.98</p></td>
</tr>
<tr>
<td><p>Ecuador</p></td>
<td><p class="center">48</p></td>
<td><p class="center">2</p></td>
<td><p class="center">14, 827</p></td>
<td><p class="center">.95</p></td>
</tr>
<tr>
<td><p>Guatemala</p></td>
<td><p class="center">33</p></td>
<td><p class="center">0</p></td>
<td><p class="center">8, 542</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Peru</p></td>
<td><p class="center">41</p></td>
<td><p class="center">0</p></td>
<td><p class="center">29, 225</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Nicaragua</p></td>
<td><p class="center">11</p></td>
<td><p class="center">0</p></td>
<td><p class="center">6,143</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Venezuela</p></td>
<td><p class="center">169</p></td>
<td><p class="center">0</p></td>
<td><p class="center">NA</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Paraguay</p></td>
<td><p class="center">43</p></td>
<td><p class="center">0</p></td>
<td><p class="center">47, 438</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td class="bdrbottom"><p>Totals</p></td>
<td class="bdrbottom"><p class="center">514</p></td>
<td class="bdrbottom"><p class="center">8</p></td>
<td class="bdrbottom"><p class="center">220, 241</p></td>
<td class="bdrbottom"><p class="center">.98</p></td>
</tr>
</tbody>
</table>
Table 2
Code: Select all
<table class="tbl-width">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="20%" />
</colgroup>
<thead>
<tr>
<th />
<th />
<th />
<th />
<th class="bdrbottom"><p class="center">Survival Index</p></th>
</tr>
<tr>
<th class="bdrbottom vbottom"><p class="center">Country</p></th>
<th class="bdrbottom vbottom"><p class="center">Number of educational centers in 1995</p></th>
<th class="bdrbottom vbottom"><p class="center">Number of educational centers closed since the beginning of FYA</p></th>
<th class="bdrbottom vbottom"><p class="center">Number of matriculated students in 1995</p></th>
<th class="bdrbottom vbottom"><p class="center">Educational centers closed in relation to the number of centers functioning in 1995</p></th>
</tr>
</thead>
<tbody>
<tr>
<td><p>Bolivia</p></td>
<td><p class="center">115</p></td>
<td><p class="center">5</p></td>
<td><p class="center">78, 576</p></td>
<td><p class="center"> .95</p></td>
</tr>
<tr>
<td><p>Colombia</p></td>
<td><p class="center"> 54</p></td>
<td><p class="center">1</p></td>
<td><p class="center">35, 321</p></td>
<td><p class="center"> .98</p></td>
</tr>
<tr>
<td><p>Ecuador</p></td>
<td><p class="center"> 48</p></td>
<td><p class="center">2</p></td>
<td><p class="center">14, 827</p></td>
<td><p class="center"> .95</p></td>
</tr>
<tr>
<td><p>Guatemala</p></td>
<td><p class="center"> 33</p></td>
<td><p class="center">0</p></td>
<td><p class="center"> 8, 542</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Peru</p></td>
<td><p class="center"> 41</p></td>
<td><p class="center">0</p></td>
<td><p class="center">29, 225</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Nicaragua</p></td>
<td><p class="center"> 11</p></td>
<td><p class="center">0</p></td>
<td><p class="center"> 6,143</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Venezuela</p></td>
<td><p class="center">169</p></td>
<td><p class="center">0</p></td>
<td><p class="center">NA</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td><p>Paraguay</p></td>
<td><p class="center"> 43</p></td>
<td><p class="center">0</p></td>
<td><p class="center">47, 438</p></td>
<td><p class="center">1.00</p></td>
</tr>
<tr>
<td class="bdrbottom"><p>Totals</p></td>
<td class="bdrbottom"><p class="center">514</p></td>
<td class="bdrbottom"><p class="center">8</p></td>
<td class="bdrbottom"><p class="center">220, 241</p></td>
<td class="bdrbottom"><p class="center"> .98</p></td>
</tr>
</tbody>
</table>