473,508 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

height property of HTML table

I have written a simple page with a 1x1 HTML table. I have set the two
property height and width of the table to 100%. I have named this page
test.htm and I try to see it using my IIS 5.0 (in Windows 2000 pro) and IE
6.1. My machine have installed .NET Framework 1.1 too. I see my page right,
the table covers all the space of the browser. If I change the page name in
test.aspx and I try to reload it, the height property is ignored and the
table is height as default, not all the page. Why? Is it a bug of .NET
Framework? If I examine the source code from IE the code is right, with the
right value for height property...

Many thanks

Sebastiano
Nov 18 '05 #1
4 1590
Can you post your html source for this page, this I have to see. Just tried
this myself and it seemed to work fine to me, I don't see why it possibly
wouldn't.
"Sebastiano" <in**@sebastianogazzola.it> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
I have written a simple page with a 1x1 HTML table. I have set the two
property height and width of the table to 100%. I have named this page
test.htm and I try to see it using my IIS 5.0 (in Windows 2000 pro) and IE
6.1. My machine have installed .NET Framework 1.1 too. I see my page right, the table covers all the space of the browser. If I change the page name in test.aspx and I try to reload it, the height property is ignored and the
table is height as default, not all the page. Why? Is it a bug of .NET
Framework? If I examine the source code from IE the code is right, with the right value for height property...

Many thanks

Sebastiano

Nov 18 '05 #2
The code is very simple, just this:

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" height="100%" border="1">
<tr>
<td>Test text</td>
</tr>
</table>
</body>
</html>

bye

Sebastiano

"Michael Ramey" <raterus@localhost> ha scritto nel messaggio
news:Of**************@TK2MSFTNGP10.phx.gbl...
Can you post your html source for this page, this I have to see. Just tried this myself and it seemed to work fine to me, I don't see why it possibly
wouldn't.
"Sebastiano" <in**@sebastianogazzola.it> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
I have written a simple page with a 1x1 HTML table. I have set the two
property height and width of the table to 100%. I have named this page
test.htm and I try to see it using my IIS 5.0 (in Windows 2000 pro) and IE 6.1. My machine have installed .NET Framework 1.1 too. I see my page

right,
the table covers all the space of the browser. If I change the page name

in
test.aspx and I try to reload it, the height property is ignored and the table is height as default, not all the page. Why? Is it a bug of .NET
Framework? If I examine the source code from IE the code is right, with

the
right value for height property...

Many thanks

Sebastiano


Nov 18 '05 #3
It's in your <!DOCTYPE ..> tag, take it out and it'll work fine. It's
probably something the W3C wants to phase out to get you to start using
stylesheets, I'd suggest researching the appropriate css to get it to work
the same.

HTH,
--Michael

"Sebastiano" <in**@sebastianogazzola.it> wrote in message
news:eT**************@TK2MSFTNGP12.phx.gbl...
The code is very simple, just this:

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%" height="100%" border="1">
<tr>
<td>Test text</td>
</tr>
</table>
</body>
</html>

bye

Sebastiano

"Michael Ramey" <raterus@localhost> ha scritto nel messaggio
news:Of**************@TK2MSFTNGP10.phx.gbl...
Can you post your html source for this page, this I have to see. Just tried
this myself and it seemed to work fine to me, I don't see why it possibly
wouldn't.
"Sebastiano" <in**@sebastianogazzola.it> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
I have written a simple page with a 1x1 HTML table. I have set the two
property height and width of the table to 100%. I have named this page
test.htm and I try to see it using my IIS 5.0 (in Windows 2000 pro)
and IE 6.1. My machine have installed .NET Framework 1.1 too. I see my page

right,
the table covers all the space of the browser. If I change the page
name in
test.aspx and I try to reload it, the height property is ignored and the table is height as default, not all the page. Why? Is it a bug of .NET
Framework? If I examine the source code from IE the code is right,

with the
right value for height property...

Many thanks

Sebastiano



Nov 18 '05 #4
hi
I have the same configuration and the following code is work just fine
under my.aspx file (and my.htm):

<HTML>
<body>
<form id="frmMain" method="post" runat="server">
<table width="100%" height="100%" bgcolor=#ffff66>
<tr>
<td>aaa</td>
</tr>
</table>
</form>
</body>
</HTML>
Nov 18 '05 #5

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

Similar topics

1
3271
by: james | last post by:
Hi there, I'm using the FOP from xml.apache.org/fop tool to convert from HTML to PDF. I'm reading the height and valign attributes of a column-cell (TD) in the XSL file:
4
16290
by: Neil Zanella | last post by:
Hello, Consider the height property in the code shown below... I am dissatisfied with the height propery. When I set it to 100% the table does not fill the entire vertical space available to...
5
2895
by: Secret Guy | last post by:
Because of my experience posting various places over the last couple of weeks: I'm expecting to be greated with hostility for asking about concepts instead of "practical" things, since that has...
5
1362
by: Eric | last post by:
Given System.Web.UI.Control Control Can I determine the height of Control without knowing specifically what it is?
2
2713
by: Steve Bottoms | last post by:
Hi, all! Using VB as code-behind in asp.net page... I have a TABLE control which I'm building dynamically. After the table is built, I'm trying to retrieve the HEIGHT property of that table...
5
8405
by: pagates | last post by:
Hi All, Newbie here again. I have a master page setup that is a two-column table. The left is a table of contents, the right the target. I want the left column to always take up 100% of the...
4
12499
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'...
7
8652
by: Phlip | last post by:
HTMLers: Start with this simple HTML: <table border='1' width='100%' height='90%'> <tr><td> <div style='overflow: auto'> </div> </td></tr> </table>
2
3983
by: laszlokenez | last post by:
Tested in IE7 and FF2. I have 2 frames, 2 similar tables in them, similar CSS. (I have 1px cellpadding, and 1px border aroud the cells. From one frame I read the offsetHeight of a cell...
0
7321
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
7036
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
7489
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
5624
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,...
0
4705
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
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 ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
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...

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.