473,666 Members | 2,039 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 1597
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**@sebastian ogazzola.it> wrote in message
news:u9******** ******@TK2MSFTN GP09.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="te xt/html" ResponseEncodin g="iso-8859-1"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitl ed 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@localh ost> ha scritto nel messaggio
news:Of******** ******@TK2MSFTN GP10.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**@sebastian ogazzola.it> wrote in message
news:u9******** ******@TK2MSFTN GP09.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**@sebastian ogazzola.it> wrote in message
news:eT******** ******@TK2MSFTN GP12.phx.gbl...
The code is very simple, just this:

<%@ Page Language="C#" ContentType="te xt/html" ResponseEncodin g="iso-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitl ed 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@localh ost> ha scritto nel messaggio
news:Of******** ******@TK2MSFTN GP10.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**@sebastian ogazzola.it> wrote in message
news:u9******** ******@TK2MSFTN GP09.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
3284
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
16298
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 the browser. On the other hand, I could set it to some large value like 780px but that would be more of a hack than a real solution (when I resize the browser window to large proportion I can
5
2908
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 been my experience for years and decades. Maybe I'm projecting hostility. I don't know. How can I ask about theory and concepts without offending people? I'll just continue asking and cross my fingers: According to the 2.1 spec, regarding...
5
1367
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
2717
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 (table.height.value) to be able to dynamically position the next elements on the form. However, this control property is coming back as -0- every time. I also try to get the table height with Javascript after-the-fact (table.style.height), but that...
5
8417
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 height of the browser (or, to put it another way, I want the content to take up 100% of the right column if it is smaller than the height). Is there a way to do that?
4
12528
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
7
8696
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
3991
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 (getElementById), and set the height of the corresponding cell in the other frame. Here: window.parent.frames.document.getElementById('r2').style.height=(document.getElementById('r2'i).offsetHeight) + 'px'; Everything works perfectly, cell gets...
0
8448
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8552
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
8640
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
7387
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
6198
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
4198
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
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.