473,473 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IE6 Bug? Table wraps

Hello ciwas world. I've just found this newsgroup, and it looks really
useful.

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html

This is a header/navbar/content layout that shows how a table in the
content area will be strangely wrapped by IE.

Starting from a regular sized window, reduce the width of the page. At
the point at which you would expect the browser to stop resizing the
table, the table will be wrapped to below the height of the navbar diff.

Also, if the page height is less than the height of the navbar div, the
content div will be rendered incorrectly.

This is so f'd up, I'm certain someone else must have seen it and can
make a workaround suggestion.

Any takers?

--

John Robin Devany
http://www.devany.com

Jul 20 '05 #1
12 5001
John Robin Devany wrote:
Hello ciwas world. I've just found this newsgroup, and it looks really
useful.

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html

This is a header/navbar/content layout that shows how a table in the
content area will be strangely wrapped by IE.

Starting from a regular sized window, reduce the width of the page. At
the point at which you would expect the browser to stop resizing the
table, the table will be wrapped to below the height of the navbar
diff.

Also, if the page height is less than the height of the navbar div,
the content div will be rendered incorrectly.

This is so f'd up, I'm certain someone else must have seen it and can
make a workaround suggestion.


If it's inelegant and crude you're looking for, try adding the following as
an extra row in the table with a suitable width at *
<tr>
<td colspan="6"><img src="transparent.gif" width="*" height="1"></td>
</tr>

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #2
PeterMcC wrote:
John Robin Devany wrote:
Hello ciwas world. I've just found this newsgroup, and it looks really
useful.

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html

<Snip>

If it's inelegant and crude you're looking for, try adding the following as
an extra row in the table with a suitable width at *
<tr>
<td colspan="6"><img src="transparent.gif" width="*" height="1"></td>
</tr>


Thanks, but I need something which will work without hacking-up the HTML.

--

John Robin Devany
http://www.devany.com

Jul 20 '05 #3

"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:%x*******************@wards.force9.net...
If it's inelegant and crude you're looking for, try adding the following as an extra row in the table with a suitable width at *
<tr>
<td colspan="6"><img src="transparent.gif" width="*" height="1"></td>
</tr>

I tried your idea of the transparent gif. It doesn't solve the problem. You
would think that a crude method such as this could not fail, but, as I say
it makes no difference.

http://p0c79.phpwebhosting.com/~p0c79/example.html

Any more ideas?
BTW - I'm working my way through the first chapter of 'Eric Meyer on CSS'
and I notice that his first project on converting a table layout to CSS only
goes as far as presentational changes, the major layout tables are left in
place. Perhaps, it will be another few years before CSS for layout will be a
viable option considering all the cross browser issues of today.
Disappointing to see IE6 (which is the most standards conforming browser
from MS) having a problem with such a simple layout.
bye
David
David Graham
Jul 20 '05 #4
John Robin Devany wrote:
Hello ciwas world. I've just found this newsgroup, and it looks really
useful.

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html

This is a header/navbar/content layout that shows how a table in the
content area will be strangely wrapped by IE.

Starting from a regular sized window, reduce the width of the page. At
the point at which you would expect the browser to stop resizing the
table, the table will be wrapped to below the height of the navbar diff.

Also, if the page height is less than the height of the navbar div, the
content div will be rendered incorrectly.

This is so f'd up, I'm certain someone else must have seen it and can
make a workaround suggestion.

Any takers?


table {
table-layout: fixed;
}

fixes it!

Tx to all who looked at it.
--

John Robin Devany
http://www.devany.com

Jul 20 '05 #5
table {
table-layout: fixed;
}

fixes it!

The only problem is that IE6 then makes the table stretch the full width of
the div that contains it. Mozilla and Opera allow the table to shrink wrap
around the tables content, which is the normal behaviour for a table

David
Jul 20 '05 #6
David Graham wrote:
table {
table-layout: fixed;
}

fixes it!


The only problem is that IE6 then makes the table stretch the full width of
the div that contains it. Mozilla and Opera allow the table to shrink wrap
around the tables content, which is the normal behaviour for a table


Quite right, I should really describe it as a work-around.
--

John Robin Devany
http://www.devany.com

Jul 20 '05 #7
In article <bm**********@hercules.btinternet.com>,
John Robin Devany <fi*******@lastname.com> wrote:
Hello ciwas world. I've just found this newsgroup, and it looks really
useful.

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html

This is a header/navbar/content layout that shows how a table in the
content area will be strangely wrapped by IE.

Starting from a regular sized window, reduce the width of the page. At
the point at which you would expect the browser to stop resizing the
table, the table will be wrapped to below the height of the navbar diff.

Also, if the page height is less than the height of the navbar div, the
content div will be rendered incorrectly.

This is so f'd up, I'm certain someone else must have seen it and can
make a workaround suggestion.


This is the 3px jog bug.

http://www.positioniseverything.net/...reepxtest.html

You could try 'position: absolute' with a suitable 'left' instead of
'float: left'.

nhoJ
--
John P Baker
Jul 20 '05 #8
JP. Baker wrote:
In article <bm**********@hercules.btinternet.com>,
John Robin Devany <fi*******@lastname.com> wrote:

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html


This is the 3px jog bug.

http://www.positioniseverything.net/...reepxtest.html

You could try 'position: absolute' with a suitable 'left' instead of
'float: left'.

nhoJ


Indeed it is, thanks for the link.

--

John Robin Devany
http://www.devany.com

Jul 20 '05 #9
John Robin Devany wrote:

I've put an example of some really irritating IE6 behaviour at:

http://www.devany.com/example.html


You should validate the document. (You need to specify a type for the
style element.)

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

Jul 20 '05 #10
"David Graham" <da************@ntlworld.com> wrote in message news:<Mv**************@newsfep1-gui.server.ntli.net>...
"PeterMcC" <pe***@mccourt.org.uk> wrote in message
news:%x*******************@wards.force9.net...
If it's inelegant and crude you're looking for, try adding the following

as
an extra row in the table with a suitable width at *
<tr>
<td colspan="6"><img src="transparent.gif" width="*" height="1"></td>
</tr>

I tried your idea of the transparent gif. It doesn't solve the problem. You
would think that a crude method such as this could not fail, but, as I say
it makes no difference.


That's because he misunderstood your ambiguous statement of the
problem. Looking at the page, it appears that what you actually mean
is that the table *moves* to a position such that its top is level
with the bottom of the navigation bar, which is a different thing
entirely from wrapping (which is where something appears partly on one
line and partly on the next).

I don't know of a solution, I'm afraid.

--- Stephen Morley ---
http://www.safalra.com
Jul 20 '05 #11
In article <bm**********@sparta.btinternet.com>,
John Robin Devany <fi*******@lastname.com> wrote:
JP. Baker wrote:

This is the 3px jog bug.

http://www.positioniseverything.net/...reepxtest.html


Indeed it is, thanks for the link.


I have gained great familiarity with it over the last fortnight.

November 2002. Implemented 'transitional' design for university site.
(table top and bottom for backward compatibility, div navigation and
content). Noticed occasional misplaced bullets in lists put it down
to IE error with custom bullets. Most pages were placeholders at the
time so were shorter than navigation.
Christmas 2002-March 2003. Broke my ankle. My boss seemed more concerned
at the jog problem than my health. Of course there was real content now.
April 2003. went live with site, deciding that a few pixels were IE's
problem and we would have to lump it.
June 2003-October 2003. Released template to other departments. Some of
whom had pages that were just tables (AAAAARGH).
October 2003. Identified as 3px jog (float) bug. Tried to find any fix
that wouldn't cause a regression. (Unfortunately we have a footer so
can't just go to 'position: absolute'. Cosmetic patch, temporarily put
in on Monday, equivalent of:

<!--[if IE 6]>
<style type="text/css">
#navigation {display: expression('absolute')}
#footer {padding-top: expression(Math.max(navigation.offsetHeight-
content.offsetHeight, 0))}
@media print {#footer {padding-top: 0 !important}}
</style>
<![endif]-->

Which needs JScript and, due to another bug, doesn't get saved to disc.
(at least the other browsers only see a comment)
Now. No idea how to redeem the situation.

[ links off http://www.bris.ac.uk/ ]

nhoJ
--
John P Baker
Jul 20 '05 #12
JP. Baker wrote:
In article <bm**********@sparta.btinternet.com>,
John Robin Devany <fi*******@lastname.com> wrote:
JP. Baker wrote:
This is the 3px jog bug.

http://www.positioniseverything.net/...reepxtest.html

<some snipping>

October 2003. Identified as 3px jog (float) bug. Tried to find any fix
that wouldn't cause a regression. (Unfortunately we have a footer so
can't just go to 'position: absolute'. Cosmetic patch, temporarily put
in on Monday, equivalent of:

<!--[if IE 6]>
<style type="text/css">
#navigation {display: expression('absolute')}
#footer {padding-top: expression(Math.max(navigation.offsetHeight-
content.offsetHeight, 0))}
@media print {#footer {padding-top: 0 !important}}
</style>
<![endif]-->

Which needs JScript and, due to another bug, doesn't get saved to disc.
(at least the other browsers only see a comment)
Now. No idea how to redeem the situation.

[ links off http://www.bris.ac.uk/ ]

nhoJ


fwiw

I've been playing a bit more and have now set the navigation section to
absolute. Of course, then there is the problem of the footer being
positioned relative to the content but not the navigation (so the
navigation div may extend vertically below the footer) - which, if I
understand correctly, is your problem too.

As a workaround, I'm assuming the navigation to be a minimum height, say
40em and then setting the minimum height of the content div to be the
same. That way, the footer will appear to be relative to the navigation
div. This will break if too much appears in navigation.

To get a minimum height in IE, i've used:

* html #content {
height: 40em;
}

Regards
--

John Robin Devany
http://www.devany.com

Jul 20 '05 #13

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

Similar topics

13
by: HenryW | last post by:
I am writing a table out to display data from a recordset and my problem is that even though as you can see the table should not exceed that screen size, it does. My users will have to scroll a mile...
0
by: Bennett Haselton | last post by:
I have a MySQL query running inside a CGI script on my site that, at random intervals, seems to take 10-20 seconds to complete instead of less than 1 second. I spent so much time trying to track...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
3
by: axlq | last post by:
I created an experimental page at: http://sunbeam.rahul.net/~unicorn/csstest.html ....which is a standard header + nav bar + 2-column content + footer CSS layout. The left column is 10em wide...
7
by: Daniel Kabs | last post by:
Hi there, for a long time I've been using tables to layout elements on a web page. Example: Say we have a 2x2 table and I'd like to put text (left aligned) and buttons (right aligned) in the...
2
by: Nobody | last post by:
Ok, I've got my page laid out pretty much how I want it, but can't figure out one part... my "content" area is a fixed width table with 2 columns... COL A = 600px wide & COL B = 170px wide... ...
3
by: jerrygadd | last post by:
Hi can anyone please help? I have a need to make a table of fixed size, containing three rows, where the middle row auto expands to fill the remaining space between the top and bottom rows. ...
13
by: ed08857 | last post by:
Hello, I have a table that I use to display data. When the the page is displayed in FF, table elements appear the same size as the text outside of the table, and that's what I want. However,...
3
by: adiel_g | last post by:
Hello everyone, I am trying to move a field name to a variable in vb.net. For example, first I retrieve the record from the database and save its value: .... userGroup =...
1
by: Jeff Bigham | last post by:
Hi, If I have a DIV containing a single text node, is there a way to detect where (or if) the text in that node wraps? <div> Some text that possibly wraps to a second line. </div> I'd...
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
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,...
1
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...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.