473,698 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table Row Heights in IE Standard Mode

I am trying to create a table that 100% of the viewport with three
rows. The top and bottom rows have a fixed height and the center row
I want to take up the rest of the space. This work fine in Mozilla
but I cannot control the row height exactly in IE. They work like
min-heights. Here is the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
body{height:100 %;}
body{margin:0;p adding:0}
table{border-collapse:collap se}
td{padding:0px; vertical-align:top}

table{width:800 px;height:100%}
#row1{height:20 0px;background-color:yellow;}
#row2{backgroun d-color:blue;}
#row3{height:20 0px;background-color:red;}

</style>
</head>
<body>
<table>
<tr>
<td id="row1">
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
</td>
</tr>
<tr>
<td id="row2">
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
</td>
</tr>
<tr>
<td id="row3">
Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text
</td>
</tr>
</table>
</body>
</html>

I want row2 to take up the rest of the space, and with IE it is just
the opposite. If I add height:100% then I get the size of the
viewport in IE but I still get the extra space in Mozilla which is
what I want. Opera works properly to if I add position:absolu te to
the table.

This is still a problem if I go with a fixed height on IE like
height:600px.

Thanks for any help,
Tyler

By the way it works like I would like in quirks mode, but then I have
to use quirks mode and I don't want that.
Jul 20 '05 #1
1 5322
I had left out an important attribute in the css for this example to
work, it was html{height:100 %}. I have updated the example and
created the following links.

http://hughaxton.com/newsgroups/IETableRowHeight.html
This one shows the height of the table at 100%

http://hughaxton.com/newsgroups/IETableRowHeight2.html
This one shows the height of the table at 600px

In both examples I have changed the top and bottom table rows to a
fixed height of 50px. You can easily see that IE treats this
differently than Mozilla and Opera. It does not keep the top and
bottom rows at the given height.

Thanks for any solution to get IE working in standards mode, not
quirks.
Tyler
Jul 20 '05 #2

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

Similar topics

1
2432
by: Tyler Carver | last post by:
I am trying to create a table that is 100% of the viewport with three rows. The top and bottom rows have a fixed height and the center row I want to take up the rest of the space. This work fine in Mozilla and Opera but I cannot control the row height exactly in IE. Row heights are working more like min heights. Here are two examples. http://hughaxton.com/newsgroups/IETableRowHeight.html This one shows the height of the table at...
2
15904
by: Marek Mänd | last post by:
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...
4
10248
by: Shash | last post by:
Hey People, I'm facing a issue with browser compatablity here, I want a certain group of divs to behave like a table row, i.e if one of the cell/div has content longer than the other divs, all the other divs should reflect the same height. I managed to get success in doing this with mozilla (i love it!) and Opera 7, but IE seems to be ignoring the defined function (again!) of the properties display: table, table-row, table-cell...
1
13242
by: Marek Mänd | last post by:
I have question regarding CSS overflow atribute. <body> <table style="height:100%" id="pagetable"> <td style="vertical-align:top;"> <div style="height:100%;overflow:scroll;/*overflow:-moz-scrollbars-vertical;*/overflow-x:hidden;overflow-y:auto;"> <table style="width:100%;"> which works fine in IE as i want it to, but not in Mozilla/Firefox 1.03.
11
3573
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables but not in height calculations. Oh, and Opera version 8.02 does the same thing. |<-->| |<-->| <------ border |<------------>| <------ table contents
117
18520
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of elements in the HTML to get everything just right. When you consider the class attribute on the DIV elements, there's not much size savings anymore for using DIV. There are other disadvantages to not using TABLE/TR/TD, such as the lack of ability...
11
2663
by: Aljosa Mohorovic | last post by:
i would like to recreate table displayed at http://fakanana.com/test/layout_1-3-1.html using css with doctype: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> i've found resources describing how to implement 3 columns with 100% height but when i introduce header and footer i can't apply 3 columns solutions because height is then = 100% - header.height - footer.height.
1
16575
by: Bart Lateur | last post by:
I'm trying to put a utton at the bottom (right) of a TD cell, irrespective of what else is in there. Usually, with other HTML block elements, we're told to use position: relative on the parent element, and position: absolute; bottom: 0px;
2
3811
by: Jukka K. Korpela | last post by:
Sub titulo "Re: DIV borders different in IE7 when in td" scripsit Ben C: This seems to be the heart of the matter, and I'm trying to get a real discussion started, by moving the discussion to the right group (c.i.w.a.stylesheets) and changing the Subject line. It seems to me that IE 7, specifically in "standards mode" (!), misbehaves when a table cell has a declared width but the actual width
0
9170
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...
1
8904
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
8876
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
7741
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2341
muto222
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.