Doubt about adding a border on this line

1

<tr  style="font-size: 12px;text-align: center" onclick="window.location = \''.$LINK.'/show/' . $auctionInfo['id'] . '\'"><td><div id="timer_' . $auctionInfo['id'] . '">' . time_left($auctionInfo['finish_time'] - time()) . '</div></td><td>' . $auctionChar->getLevel() . ' ' . getVocationName($auctionChar->getVocation(), $auctionChar->getPromotion()) . '</td><td>' . $auctionInfo['buy_now'] . ' pp</td><td>' . $auctionInfo['bid'] . ' pp</td></tr>';

If you need the entire page just say that I post I'm trying to add the border tag to get a little more organized and separate but it's no good how I put it or where it does not change if someone can give a force

Print the page

    
asked by anonymous 25.07.2018 / 17:07

2 answers

0

As stated in the comment, the <table> tag outside your <tr> thus places <table border="1px" style=" border-collapse: collapse;">

Look at the example, note that all content is now separated by the borders. You can still use padding in <td> if you want to distance the contents of the borders.

<table border="1px" style=" border-collapse: collapse;">
    <tr style="font-size: 12px;text-align: center" onclick="window.location = \''.$LINK.'/show/' . $auctionInfo['id'] . '\'">
        <td>
            <div id="timer_' . $auctionInfo['id'] . '">' . time_left($auctionInfo['finish_time'] - time()) . '</div>
        </td>
        <td>' . $auctionChar->getLevel() . ' ' . getVocationName($auctionChar->getVocation(), $auctionChar->getPromotion()) . '</td>
        <td>' . $auctionInfo['buy_now'] . ' pp</td>
        <td>' . $auctionInfo['bid'] . ' pp</td>
    </tr>';
</table>
    
25.07.2018 / 19:21
0
table {
    border-collapse: collapse; 
}

td {
    padding: 10px 0;     /* 10px top & bottom padding, 0px left & right */
    border-width: 1px 0; /*  1px top & bottom border,  0px left & right */
    border-color: #000;
    border-style: solid;
}
    
25.07.2018 / 17:27