473,545 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

auto table row height

I have problems with table row height by Internet Explorer6 in xhtml1
css1compat mode document.

The table has fixed height and on one TFOOT row the height is set to
'auto' to make it have flexible height, which will shrink if there are
more rows in TBODY and which will grow if there are fewer rows in TBODY.
However IE6 has huge troubles with this simple concept and doesnt seem
want to make the auto-heighted row to behave as auto heighted and
distributes row heights wrongly:

http://www.hot.ee/idaliiga/testcases...rtslisting.htm
Is there a easy way to workaround it and make IE6 look like Firefox,
Mozilla and Opera?
Jul 21 '05 #1
2 15892
Marek Mänd wrote:
I have problems with table row height by Internet Explorer6 in xhtml1
css1compat mode document.

The table has fixed height and on one TFOOT row the height is set to
'auto' to make it have flexible height, which will shrink if there are
more rows in TBODY and which will grow if there are fewer rows in TBODY.
However IE6 has huge troubles with this simple concept and doesnt seem
want to make the auto-heighted row to behave as auto heighted and
distributes row heights wrongly:

http://www.hot.ee/idaliiga/testcases...rtslisting.htm
Is there a easy way to workaround it and make IE6 look like Firefox,
Mozilla and Opera?


You can tweak endlessly and every time you add a new element you have to
do it all over again. The browsers act differently. Especially when
trying to force element sizes and positions.

Table elements are particularily tricky, because the standards leave a
lot of the rendering options up to the user agent.

Are you targeting text based user agents? If not, do you need all the
info in one table? You could solve your problem by putting the footer in
a div outside the table, a separate table or even a table within a table.

Perhaps you should also consider abandoning the table all together and
use other elements.
Jul 21 '05 #2
DU
Ståle Sæbøe wrote:
Marek Mänd wrote:
I have problems with table row height by Internet Explorer6 in xhtml1
css1compat mode document.

The table has fixed height and on one TFOOT row the height is set to
'auto' to make it have flexible height, which will shrink if there are
more rows in TBODY and which will grow if there are fewer rows in TBODY.
However IE6 has huge troubles with this simple concept and doesnt seem
want to make the auto-heighted row to behave as auto heighted and
distributes row heights wrongly:

http://www.hot.ee/idaliiga/testcases...rtslisting.htm
Is there a easy way to workaround it and make IE6 look like Firefox,
Mozilla and Opera?

You can tweak endlessly and every time you add a new element you have to
do it all over again. The browsers act differently.


The more a table is overconstrained , and this is obviously the case with
the OP's webpage, then the more the layout will differ in different
browsers and in different contexts.
E.g.:
<th style="height:2 0px;">Product
list<br/>sadasdas<br/>sadasdas<br/>sadasdas</th>
The OP wants such table row to use only height of 20px. How is that
possible if the font-size used is more than 5px ?
Especially when trying to force element sizes and positions.

It's easier to set size and position to generic block-level elements
like <div>, not to <table>
Table elements are particularily tricky, because the standards leave a
lot of the rendering options up to the user agent.

Are you targeting text based user agents? If not, do you need all the
info in one table? You could solve your problem by putting the footer in
a div outside the table, a separate table or even a table within a table.

Nested tables is always a bad solution. To start with, tables should be
used for tabular data. Here, it seems obvious to me it's not the case.
Perhaps you should also consider abandoning the table all together and
use other elements.


DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.6 :)
Jul 21 '05 #3

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

Similar topics

1
13948
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the page the way I want. Does anybody know a solution for this? First of all, the code I am using: CSS ------- body {
3
14219
by: inkswamp | last post by:
I've been using CSS for quite a while now but I have yet to master its eccentricities. Here's something I recently ran across and if someone could explain why this happens, I would appreciate it. I've included code below. The code produces three divs, each with height set to "auto." Within each div is an image. If I float the image left or...
4
12509
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse:collapse; width:100%; height:100%;'> <tr><td colspan='2' style='height:3em; border-bottom:1px solid
14
21046
by: rsearing | last post by:
I am new to HTML and will have to beg if this is obvious, but I am trying to design a table that looks like: ******************************** *----A------*------------------------* ************------------------------* *------------*------------------------* *------------*------------------------* *----B------*------------C----------*...
2
3054
by: Piotr K | last post by:
Hi, I've encountered a strange problem with Firefox which I don't have any idea how to resolve. To the point: I've <divelement with a style "height: auto" and I want to retrieve this value ("auto") in JavaScript - however instead of getting "auto" value, I get calculated height. In IE and Opera it simply returns "auto". Any ideas how to...
1
2966
by: neridaj | last post by:
Hello, I've found a few postings of this problem but none of the answers seem to fix my problem. I have a content div wrapped around a left floated image and a right floated table. I want the table to dictate the height to the content div instead of popping out of the bottom of the content div. Seems pretty simple but too complicated for me I...
1
5148
by: pravinnweb | last post by:
can anyone tell me how to set auto height to outer div that is in green box id "gray-background" it should increase relatively to inner div "smbox" here is the css and html code it should work in FF, IE6 and IE7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> Employee Listing </TITLE> <META...
1
3236
by: azura | last post by:
how can i get this textfield auto detect?? because i try not to using view name button... i want when i enterd this matric no., the student name will appear automatically when i insert the matric no.. <table width="416" height="70" border="1"> <tr> <td width="87" height="33"><strong>Matric No</strong> </td> <td...
1
1561
by: azura | last post by:
i had a problem... how can i auto detect that bold n italic field..when i enter the matric no, then the name will auto appear... i want to make this field using less button.. thanks <table width="416" height="70" border="1"> <tr> <td width="87" height="33"><strong>Matric No</strong> </td> <td width="7"><div...
0
7487
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...
0
7420
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...
0
7680
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. ...
0
7934
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...
0
6003
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5349
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3476
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1908
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

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.