473,624 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML Table, Images and Text

Hi,

I am a little bit confused. Maybe someone can explain what I am doing
wrong.

I have a table with 2 cells in it. In the first cell I have an image.
The image is left aligned and centered. In the second cell I also put
an image. It is also left aligned and centered. It works wonderfull.
But now I add some Text to the second cell. Baff - the valign is
broken.

<TD width="10" align="left" valign="middle" ><IMG src="plus.gif"> </TD>
<TD align="left" valign="middle" ><IMG src="folder.gif ">blah</TD>

What happens. The folder.gif is not valign centered. If I enter
valign=absmiddl e for the image all is wonderfull on IE(6). But not on
Mozilla 1.4. Can someone explain me why this is happening? And how can
I correct it?

cu
Bjoern Wolfgardt
Jul 20 '05 #1
3 16507
Bjoern Wolfgardt wrote:

I have a table with 2 cells in it. In the first cell I have an image.
The image is left aligned and centered. In the second cell I also put
an image. It is also left aligned and centered. It works wonderfull.
But now I add some Text to the second cell. Baff - the valign is
broken.

<TD width="10" align="left" valign="middle" ><IMG src="plus.gif"> </TD>
<TD align="left" valign="middle" ><IMG src="folder.gif ">blah</TD>

how can I correct it?


This might help.
http://devedge.netscape.com/viewsource/2002/img-table/

Have you considered using CSS to suggest a presentation?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
Brian <us*****@mangym utt.com.invalid-remove-this-part> wrote in message news:<hB******* ***********@rwc rnsc51.ops.asp. att.net>...
Bjoern Wolfgardt wrote:

I have a table with 2 cells in it. In the first cell I have an image.
The image is left aligned and centered. In the second cell I also put
an image. It is also left aligned and centered. It works wonderfull.
But now I add some Text to the second cell. Baff - the valign is
broken.

<TD width="10" align="left" valign="middle" ><IMG src="plus.gif"> </TD>
<TD align="left" valign="middle" ><IMG src="folder.gif ">blah</TD>

how can I correct it?


This might help.
http://devedge.netscape.com/viewsource/2002/img-table/

Have you considered using CSS to suggest a presentation?

Hi,

thx alot. Now I know why it happens. But I think the only solution is
to split the second cell into two seperate cells. That leads me to
another problem. The cell width is not recognized by IE. Mozilla does
it correct (as I understand it).

Here is a little example:
<TABLE ID="1" Border="1" cellpadding="0" cellspacing="0" >
<TR ID="tr">
<TD width="20" align="center" valign="middle" ><IMG
src="plus.gif" onclick="toggle (this)"></TD>
<TD width="20" align="center" valign="middle" ><IMG
src="root.gif" onclick="Select Node(this)"></TD>
<TD onclick="Select Node(this)" align="left" valign="middle"
nowrap>RootNode </TD>
</TR>
<TR style="DISPLAY: ">
<TD align="left" valign="top"></TD>
<TD align="left" valign="top" colspan="2"><TA BLE ID="1.3"
Border="1" cellpadding="0" cellspacing="0" >
<TR>
<TD width="20" align="center" valign="middle" ><IMG
src="plus.gif" onclick="toggle (this)"></TD>
<TD width="20" align="center" valign="middle" ><IMG
src="folder.gif "></TD>
<TD align="left" valign="middle" nowrap><A
onclick="Select Node(this)">Sub Node 1.3</A></TD>
</TR>
<TR style="DISPLAY: ">
<TD></TD>
<TD colspan="2"><TA BLE ID="1.3.1" Border="1" cellpadding="0"
cellspacing="0" >
<TR>
<TD width="20" align="center" valign="middle" ><IMG
src="plus.gif" onclick="toggle (this)"></TD>
<TD width="20" align="center" valign="middle" ><IMG
src="folder.gif "></TD>
<TD align="center" valign="middle" nowrap><A
onclick="Select Node(this)">Sub Node 1.3.1</A></TD>
</TR>
<TR style="DISPLAY: none">
<TD></TD>
<TD colspan="2"></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE ID="1.2" Border="1" cellpadding="0" cellspacing="0" >
<TR>
<TD width="20" align="center" valign="middle" ><IMG
src="plus.gif" onclick="toggle (this)"></TD>
<TD width="20" align="center" valign="middle" ><IMG
src="folder.gif "></TD>
<TD align="left" valign="middle" nowrap><A
onclick="Select Node(this)">Sub Node 1.2</A></TD>
</TR>
<TR style="DISPLAY: none">
<TD></TD>
<TD colspan="2"></TD>
</TR>
</TABLE>
<TABLE ID="1.1" Border="1" cellpadding="0" cellspacing="0" >
<TR>
<TD width="20" align="center" valign="middle" ><IMG
src="plus.gif" onclick="toggle (this)"></TD>
<TD width="20" align="center" valign="middle" ><IMG
src="folder.gif "></TD>
<TD align="left" valign="middle" nowrap><A
onclick="Select Node(this)">Sub Node 1.1</A></TD>
</TR>
<TR style="DISPLAY: none">
<TD></TD>
<TD colspan="2"></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
Jul 20 '05 #3
Bjoern Wolfgardt wrote:

But I think the only solution is to split the second
cell into two seperate cells.
If it's tabular data in the table, then you cannot split it into two
tables. If it is not tabular data, mark it up with table elements.
< http://www.allmyfaqs.com/faq.pl?Tableless_layouts >
Here is a little example:
<TABLE ID="1" Border="1" cellpadding="0" cellspacing="0" >
<TR ID="tr">


[code snipped]
It does not, in fact, look like tablular data. See link above. Other
than that, I cannot really make out what's going on with your table by
looking at it in you message. There is too much spacing, causing
wrapping and making it all a bit of a mess. Give us a url instead.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2927
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
2
2071
by: Venkat | last post by:
Hi, My HTML page doesnot work properly in Netscape 7.1. But works fine in Opera 7 and IE 6.0. I could not figure out the problem. If any one could/suggest it would be nice.. This piece of HTML describes a tree like structure of the contents. Thanks venkat. ------
3
2041
by: rvanvolken | last post by:
After sending an email message formatted for HTML using the STMP Mail function within .NET, my message arrives with exclamation marks throughout the text, which inadvertantly hinders the correct formatting of the text. Importing the source from one of these messages to Microsoft Word, I was able to see that after each of the exclamation marks a hidden paragraph mark exists. I've read other postings where the developer used StringBuilder...
2
1458
by: Roel Korsten | last post by:
Hello all, I've got a strange one: I'm sending HTML mail via the System.Web.Mail namespace: Dim ObjEmail As New MailMessage Dim sb As New StringBuilder ObjEmail.To = 'someone@thisnewsgroup.com ObjEmail.From = ConfigurationSettings.AppSettings("MailFrom")
7
2775
by: KelsMckin | last post by:
What is the easiest way to retreive the html source from a web page? Could you please provide an example? Any and all help would be greatly appreciated
4
3498
dizyn
by: dizyn | last post by:
Hi here is errors list, i have solved many but these few are not getting solved. Please help me. Line 5 column 113: character data is not allowed here. Line 15 column 6: end tag for "HEAD" which is not finished. Line 64 column 50: document type does not allow element "FORM" here. Line 65 column 4: document type does not allow element "TR" here. Line 72 column 7: end tag for "TABLE" which is not finished. Code:
0
1344
by: punitshrivastava | last post by:
Hi to All, I am Punit Shrivastava.i created one html page for this i cde like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>kj-issue-52-200602 copy.jpg</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css">
5
2447
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET /* CSS for Marlon Sanders site */ html, body {
7
3603
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference. http://www.marco.com.cn/web-content/marco_re10.html -------------------------------------------------------------- <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Marco</title> <!-- InstanceEndEditable -->
2
3048
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. contactus.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
0
8240
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8680
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8625
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.