add space between each th / th th / th

0

I do not know how to make spaces in addition to & nbsp;

<?php
    echo"<th><br>Datos Actuales</th>/*Aqui quiero el espacio*/<th><br>Datos Nuevos</th></tr><tr>";
    ?>
    
asked by inusui 12.10.2018 в 04:59
source

2 answers

0

You could add a margin on the left with CSS to all the th tags that go after another th tag:

<style>
th + th {
    margin-left: 20px;
}
</style>
    
answered by 12.10.2018 в 05:32
0

After a long time of thinking and researching, I discovered that the colspan = 2 to the previous line of the th to give it the spacing

echo"<th colspan=2><br>Datos Actuales</th>";
echo"<th><br>Datos Nuevos</th>";
    
answered by 12.10.2018 в 07:11