html css for td cells border

I have a html table with id 't01'

I have a seperate css for the table

I am trying to have table border between the cells. How do i do it? I can get borders around the table but not in between in cells.

<!DOCTYPE html>
<html>
    <head>
    <title>Bigwin Daily Revenue Report </title>
    <style> 
        #t01 {
            width: 100%;
            background-color: #f1f1c1;
            border: 1px solid black;
             padding: 10px;
        }
    </style>
</head>
<body>
    <table id="t01">
    <tr>
        <td></td>
        <td><b>January</b></td>
        <td><b>February</b></td>
        <td><b>March</b></td>
        <td><b>April</b></td>
        <td><b>May</b></td>
        <td><b>June</b></td>
        <td><b>July</b></td>
        <td><b>August</b></td>
        <td><b>September</b></td>
        <td><b>October</b></td>
        <td><b>November</b></td>
        <td><b> Total</b></td>
     </tr>
     <tr>
        <td>BYH  (22888)</td>
        <td>1</td>
        <td>2</td>
        <td>3</td>
        <td>4</td>
        <td>5</td>
        <td>6</td>
        <td>7</td>
        <td>8</td>
        <td>9</td>
        <td>10</td>
        <td>11</td>
        <td>66.0</td>
     </tr>          
     </table>
   </body>
</html>


Read more here: https://stackoverflow.com/questions/64899214/html-css-for-td-cells-border

Content Attribution

This content was originally published by Rahul SK at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: