473,395 Members | 2,783 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,395 software developers and data experts.

Explorer table weirdness... can anyone explain?

I want a left-column menu bar and a right-column data area. The menu
items (6 or so) are fixed-height and the space below them needs to
expand. I've run into a strange situation only with IE6. Please try the
code below and help me figure out what's going on.

Execute the following code in Explorer:

--------------------
<TABLE BORDER=1 height="100%" width="100%">
<TR height="34"><Td width="125">A</TD><Td rowspan="6">
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>

</TD></TR>
<TR height="34"><Td >B</TD></TR>
<TR height="34"><Td >C</TD></TR>
<TR height="34"><Td >D</TD></TR>
<TR height="34"><Td >E</TD></TR>
<TR><TD ROWSPAN=2>F</TD></TR>
</TABLE>
--------------------

Notice that B C D E are all the correct height.

Now add one more <p>blah</p> line to the others like so:

--------------------
<TABLE BORDER=1 height="100%" width="100%">
<TR height="34"><Td width="125">A</TD><Td rowspan="6">
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p> <!-- added line here -->

</TD></TR>
<TR height="34"><Td >B</TD></TR>
<TR height="34"><Td >C</TD></TR>
<TR height="34"><Td >D</TD></TR>
<TR height="34"><Td >E</TD></TR>
<TR><TD ROWSPAN=2>F</TD></TR>
</TABLE>
--------------------

and all the sudden all the 34px tall cells start to grow. Add more
"blahs" and they keep growing. This only happens on Explorer. It seems
that 6 lines is the threshold before the rows start expanding.

How do I get around this? I haven't coded HTML for a while so this one
is new to me. It works fine on Firefox and the Mac browsers... it seems
like IE6 is the only strange one.

Thanks!

Jul 24 '05 #1
5 2154
xperiencednoob wrote:
I want a left-column menu bar and a right-column data area. The menu
items (6 or so) are fixed-height and the space below them needs to
expand. I've run into a strange situation only with IE6. Please try the
code below and help me figure out what's going on.

Execute the following code in Explorer:

--------------------
<TABLE BORDER=1 height="100%" width="100%">
<TR height="34"><Td width="125">A</TD><Td rowspan="6">
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>

</TD></TR>
<TR height="34"><Td >B</TD></TR>
<TR height="34"><Td >C</TD></TR>
<TR height="34"><Td >D</TD></TR>
<TR height="34"><Td >E</TD></TR>
<TR><TD ROWSPAN=2>F</TD></TR>
</TABLE>
--------------------

Notice that B C D E are all the correct height.


Inspect your code again. Your table looks like this:

SZ
TZ
UZ
VZ
WZ
XZ
X?

The Zs indicate the cell with rowspan="6", and the Xs represent the cell
with rowspan="2". Then you've got a cell in the lower right that isn't
defined in your code.
Jul 24 '05 #2
OK, looks like I rushed when I wrote the code. Here is a cleaner
version that has the same problem:

<TABLE BORDER=1 height="100%" width="100%">
<TR height="34">
<TD width="125">A</TD>
<TD rowspan="6">
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
</TD>
</TR>

<TR height="34"><TD width="125">B</TD></TR>
<TR height="34"><TD width="125">C</TD></TR>
<TR height="34"><TD width="125">D</TD></TR>
<TR height="34"><TD width="125">E</TD></TR>
<TR> <TD width="125">F</TD></TR>

</TABLE>

Now, if you open the above code in IE6 rows A through E are the correct
fixed height of 34px while row F stretches to fit the screen. If you
add one more "blah" line, A through E stretch their height. Adding more
lines stretches them even more. Can anyone help?

Thanks, and sorry for the sloppy code.

Jul 24 '05 #3
If anyone can shed some light on this I'd be grateful... It's got to be
something simple relative to Explorer... it happens on both Mac and PC
platforms using IE. Thanks.

Jul 24 '05 #4

"xperiencednoob" <go**********@fatsquid.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
If anyone can shed some light on this I'd be grateful... It's got to be
something simple relative to Explorer... it happens on both Mac and PC
platforms using IE. Thanks.


<TABLE BORDER=1 height="100%" width="100%">
<TR height="34">
<TD width="125">A</TD>
<TD rowspan="7" valign="top">
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
<p>blah</p>
</TD>
</TR>

<TR height="34"><TD width="125">B</TD></TR>
<TR height="34"><TD width="125">C</TD></TR>
<TR height="34"><TD width="125">D</TD></TR>
<TR height="34"><TD width="125">E</TD></TR>
<TR> <TD width="125">F</TD></TR>
<TR> <TD width="125"><img src="spacer.gif" width="1" height="150" alt=""
border="0"></TD></TR>

</TABLE>

I used a 1x1 px transparent .gif to jack up the left column (and made the
right column a rowspan 7). Is that what you want? If so, as your "blah's"
increase, increase the height on your .gif.

Carla
Jul 24 '05 #5
Thanks for the suggest Carla. What I was really after (besides a fix)
is the underlying reason why Explorer does this and the others don't.
It seems like there'd be a explanation of this behavior somwhere.

Anyhow, I solved the problem by using DIV's and simply stacking my menu
graphics one afte the other in a single left-hand column. This gets
around the issue all together, but I'm still confused why it happened
in the first place.

Thanks again.

Jul 24 '05 #6

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

Similar topics

3
by: Steve Neill | last post by:
Here's a simple test... <html> <body> <span style="border:1px solid...
1
by: Bill Stock | last post by:
I trying to create an Excel workbook from Access and then do some formatting of the workbook. I did quite a bit of this with Access 97 a few years back, but I haven't done much with A2K. So I...
5
by: Saso Zagoranski | last post by:
Hi! I would like to know whether there is a component included in .net fw, which resembles Windows explorer table, where you have: filename file size ... Or has anyone else created...
0
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our...
2
by: AH | last post by:
Dear all, I am facing this 'bug' that really drive me nut. I created a trigger for Update script and tested in Enterprise manager to ensure it function correctly. However, when I used both VB or...
5
by: David Thielen | last post by:
Hi; I am creating png files in my ASP .NET app. When I am running under Windows 2003/IIS 6, the file is not given the security permissions it should have. It does not have any permission for...
2
by: Wally | last post by:
Hi there, Please looking forward to get info about this one: a 2,000 rows Access table lately cause underlying queries to freeze (Access Not responding). So far the only way I found to unlock...
26
by: Prisoner at War | last post by:
Hi, All: I have a JavaScript search engine that always causes MSIE 7 to do a top-of-page security "warning" (that top-of-page-bar, and not an "alert" )...but other websites' JavaScripts do not...
2
by: JYA | last post by:
Hi. I was writing an xmltv parser using python when I faced some weirdness that I couldn't explain. What I'm doing, is read an xml file, create another dom object and copy the element from...
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
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,...
0
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...
0
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...
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,...

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.