Hi,
I have a asp:image control in one of my user controls and it loads a source depending on the page it is on. The image control is in a table cell, in a single-row table that has its width set to 950. The source of the image control is also always 950 pixels wide.
Whatever I try, asp.net seems to put a 4px border (margin) around the asp:image control on all sides. I've set every imaginable padding and margin attribute to 0 for the table, the row and the cell, but I still get this border. Am I missing something obvious?
Here is the code I use in my user control:
As you can see, I can't think of any other attribute or property that I should set to 0 to get rid of the unwanted, 4px wide borders.
Can anybody help please? TIA.
Hokkie
I have a asp:image control in one of my user controls and it loads a source depending on the page it is on. The image control is in a table cell, in a single-row table that has its width set to 950. The source of the image control is also always 950 pixels wide.
Whatever I try, asp.net seems to put a 4px border (margin) around the asp:image control on all sides. I've set every imaginable padding and margin attribute to 0 for the table, the row and the cell, but I still get this border. Am I missing something obvious?
Here is the code I use in my user control:
Code:
<table id="Table1" height="70" cellSpacing="0" cellPadding="0" width="950" border="0">
<tr style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-TOP-STYLE: none; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
<td align="left" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-TOP-STYLE: none; PADDING-TOP: 0px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" valign="top" width="950" height="70">
<asp:image id="Image1" ImageAlign="Right" Height="70" Width="950" runat="server" BorderWidth="0px" BorderStyle="None"></asp:image>
</td>
</tr>
</table>
As you can see, I can't think of any other attribute or property that I should set to 0 to get rid of the unwanted, 4px wide borders.
Can anybody help please? TIA.
Hokkie