472,955 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,955 software developers and data experts.

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 3147
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt Adams | last post by:
I want to move the following <PRE> defintion to a css file: <TABLE><TR><TD><PRE>sample text</PRE></TD> <TD> not predefined font</TD></TR></TABLE> should be <TABLE><TR><TD class=aaa>sample...
6
by: Herman Kuiper | last post by:
Hi, The HTML at the end of this message will render erroneously on IE (at least 5.0) and prperly on Mozilla (as I've been told). That does not surprise me, but I *would* like to find some...
2
by: js | last post by:
I have a table rendered with XSLT. The first column has a radio button controls for user to make a selection for a particular row. All the values in the remaining columns are all concated with a...
2
by: bissatch | last post by:
Hi, I am trying to use JavaScript to write a table column on a web page. The code is as follows: <html> <head> <script> function displaycount() {
3
by: RC | last post by:
I have a very sime html table like <html><head><title>My Table</title> <style> input { margin: 0; padding: 0; border-width: 0; text-indet: 0; text-align: left } </style></head><body> <table...
3
by: Henry Johnson | last post by:
Okay - I'm spinning my wheels on this one... can someone help me figure out how to programmatically populate a table cell as follows (from C# code-behind)? I've tried using a Literal control in the...
5
by: mahesr | last post by:
I want to match some particular text between <tr>and </tr> or <td>and </td>.... in PHP. like below............ <table><tr> CATEGORY: <td><font face="Verdana" size="1" color="#A000A0"> Wedding...
7
by: Xiaoyan | last post by:
Hi,everyone: I have a problem now. I can't get the information between the <tr><td> and </td></tr>. for example: I use this regular expression can't get it, I don't know why....
6
tusovka
by: tusovka | last post by:
I have a table with 6 columns ------------------------------------------------------------- | Line | One | Two | Three | Four | Five |...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.