473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 3171
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.