468,268 Members | 1,653 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

weird white space being introduced into <td>

hi-

I have a table on a page there is 1 row and 2 cells
cell 1 has a user control that is basically just a DataList nested in a
table o fit's own.
then, below that user control I have some <p> tags to give me vertical
space, then after that I have an <asp:image> control.
Now, I just added the asp:image control. when I did, it put about 10-12
pixels of white space between this table and the header user control above
it. I only see this problem in Opera, Mozilla and Netsacpe, IE draws it
fine.

I know this is confusing, here is the basic code

<form id="Default" method="post" runat="server">
<uc1:Header id="Header1" runat="server"></uc1:Header>
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="780" border="0"
class="small">
<TR>
<TD width="150" vAlign="top">
<P>
<uc1:sideNavigation id="SideNavigation1"
runat="server"></uc1:sideNavigation></P>
<p>&nbsp;</p>
<p>&nbsp;</p>
<asp:Image id="Image_Testimonial" runat="server"
ImageUrl="~/Images/testimonial_01.gif"></asp:Image></TD>
<TD vAlign="top" width="4">
<asp:Image id="Image1" runat="server" ImageUrl="Images/Spacer_1x1.gif"
Width="10px"></asp:Image></TD>
<TD vAlign="top"><IMG src="Images/Spacer_1x1.gif" runat="server"
height="10"><br>
<asp:PlaceHolder id="placeholder_Main" runat="server"></asp:PlaceHolder>
</TD>
</TR>
</TABLE>
<P>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer></P>
</form>


<uc1:Header is a table that is just a basic header user control.
The white space is appearing between "<uc1:Header" and "<TABLE id="Table1""

Only when the "<asp:Image id="Image_Testimonial"" is added.
Anyone have any idea what could cause this? I have seen this kind of thing
in the past where you need to have a </td> on teh SAME line as an <img> tag,
but I can't solve my problem this same way.

Thanks for any help!
Steve
Nov 18 '05 #1
1 2998
problem solved. It was actually NOT what I thought it was... it turns out
that shabby testing combines with an orphaned <p> tag were the culprit!

thanks anyways!!
"neverstill" <sk************@yahoo.com> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
hi-

I have a table on a page there is 1 row and 2 cells
cell 1 has a user control that is basically just a DataList nested in a
table o fit's own.
then, below that user control I have some <p> tags to give me vertical
space, then after that I have an <asp:image> control.
Now, I just added the asp:image control. when I did, it put about 10-12
pixels of white space between this table and the header user control above
it. I only see this problem in Opera, Mozilla and Netsacpe, IE draws it
fine.

I know this is confusing, here is the basic code

<form id="Default" method="post" runat="server">
<uc1:Header id="Header1" runat="server"></uc1:Header>
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="780" border="0"
class="small">
<TR>
<TD width="150" vAlign="top">
<P>
<uc1:sideNavigation id="SideNavigation1"
runat="server"></uc1:sideNavigation></P>
<p>&nbsp;</p>
<p>&nbsp;</p>
<asp:Image id="Image_Testimonial" runat="server"
ImageUrl="~/Images/testimonial_01.gif"></asp:Image></TD>
<TD vAlign="top" width="4">
<asp:Image id="Image1" runat="server" ImageUrl="Images/Spacer_1x1.gif"
Width="10px"></asp:Image></TD>
<TD vAlign="top"><IMG src="Images/Spacer_1x1.gif" runat="server"
height="10"><br>
<asp:PlaceHolder id="placeholder_Main" runat="server"></asp:PlaceHolder> </TD>
</TR>
</TABLE>
<P>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer></P>
</form>


<uc1:Header is a table that is just a basic header user control.
The white space is appearing between "<uc1:Header" and "<TABLE id="Table1""
Only when the "<asp:Image id="Image_Testimonial"" is added.
Anyone have any idea what could cause this? I have seen this kind of thing in the past where you need to have a </td> on teh SAME line as an <img> tag, but I can't solve my problem this same way.

Thanks for any help!
Steve

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by bissatch | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.