Good I have these tables generated in pdf by php
in html
, and I would like to center them, but I do not get it. I attach the code:
$content .= '
<div class="row" >
<div class="col-md-12">
<h2>Jornada 1</h2>
<h3>'.$user['Fecha_Inicio'].'</h3>
<table border="0" cellpadding="5">
<thead>
<tr>
<th bgcolor="grey" width="22%">LOCAL</th>
<th bgcolor="grey" width="22%"></th>
<th bgcolor="grey" width="22%">VISITANTE</th>
</tr>
</thead>
';
$content .= '
<tr>
<td width="22%">'.$user['Nombre_E7'].'</td>
<td width="22%" align="center">VS</td>
<td width="22%">'.$user['Nombre_E8'].'</td>
</tr>
<tr>
<td width="22%">'.$user['Nombre_E9'].'</td>
<td width="22%" align="center">VS</td>
<td width="22%">'.$user['Nombre_E4'].'</td>
</tr>
<tr>
<td width="22%">'.$user['Nombre_E5'].'</td>
<td width="22%" align="center">VS</td>
<td width="22%">'.$user['Nombre_E2'].'</td>
</tr>
<tr>
<td width="22%">'.$user['Nombre_E1'].'</td>
<td width="22%" align="center">VS</td>
<td width="22%">'.$user['Nombre_E6'].'</td>
</tr>
<tr>
<td width="22%">'.$user['Nombre_E3'].'</td>
<td width="22%" align="center">VS</td>
<td width="22%">'.$user['Nombre_E10'].'</td>
</tr>
';
$content .= '</table>';
Thank you,
Greetings