tatton777
asked on
Can't get rid of 1 pixel spacing above and below embedded table using style tags
If you put the code in an asp.net page you will see that there is a pink, 1 pixel space above and below the embedded table.
<table style="width:100%; padding:0px; border-spacing:0px; border-collapse:separate;">
<tr style="background-color: #d75f07; height: 10px; color: white; text-align: center">
<td>
<asp:Label ID="lblGeneralAnnouncementHeader0" runat="server" style="font-size: medium" /> <asp:Label ID="lblGeneralAnnouncement0" runat="server" style="font-size: small" />
</td>
</tr>
<tr style="background-color: pink; color: white; text-align: center">
<td align="center">
<table style="width:1170px; height:105px; padding:0px; border-spacing:0px; border-collapse:collapse; background-color: purple">
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
<tr style="background-color: #d75f07; height: 10px; color: white; text-align: center">
<td>
</td>
</tr>
</table>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I have recommended this question be closed as follows:
Accept: Alan Warren (https:#a40021621)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
knowlton
Experts-Exchange Cleanup Volunteer
I have recommended this question be closed as follows:
Accept: Alan Warren (https:#a40021621)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
knowlton
Experts-Exchange Cleanup Volunteer
padding-top: 0px;
same for all other sides
td {
padding-top:0px;
padding-bottom:0px;
padding-right:0px;
}