-4

I am trying to get rid of the red background between the images here. How can I do this using css?

 <table style="background-color:red; padding:0;margin:0;">
            <tr>
                <td>
                    <img src="/graphics/susSlogan.gif">
                </td>
            </tr>
            <tr>
                <td>
                    <img src="/graphics/susSlogan.gif">
                </td>
            </tr>
        </table>

enter image description here

psj01
  • 3,075
  • 6
  • 32
  • 63

2 Answers2

0

You want to change the padding on the <td> elements. So something like:

td{
    padding-bottom: 0;
}
Cory Madden
  • 5,026
  • 24
  • 37
0

You can use

<table cellpadding="0"></table>

https://www.w3schools.com/tags/att_table_cellpadding.asp

or you can use

td {
    padding-bottom: 0px;
}

https://www.w3schools.com/css/css_table.asp

StuiterSlurf
  • 2,464
  • 4
  • 34
  • 55