473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

2.0 height %'s not working

I like to use %'s when laying out tables. In the source (.aspx or .htm) I'll
enter:
<table width=100% height=100%>

<tr height=50%><td width=50%></td><td></td></tr>

<tr height=50%><td width=50%></td><td></td></tr>

</table>

The page will render as band at the top. Appearantly disregarding the height
entries; the widths are accurate The page presents as expected in the
Designer.

Am I missing something here? Must all heights be px based? Thanks.
Dec 22 '05 #1
3 903
Hieghts for tables are not valid html attributes. What validation doctype
are you using for you pages? If in xhtml try switiching to IE6 and see if
that helps.
"prefersgolfing" <pr************@hotmail.com> wrote in message
news:eJ**************@TK2MSFTNGP09.phx.gbl...
I like to use %'s when laying out tables. In the source (.aspx or .htm)
I'll enter:
<table width=100% height=100%>

<tr height=50%><td width=50%></td><td></td></tr>

<tr height=50%><td width=50%></td><td></td></tr>

</table>

The page will render as band at the top. Appearantly disregarding the
height entries; the widths are accurate The page presents as expected in
the Designer.

Am I missing something here? Must all heights be px based? Thanks.

Dec 22 '05 #2
I agree with Showjumper, this is not a good idea

My crystal ball says you *are* using IE6 and you are probably using a
doctype that put's IE into CSS1Compat mode

My my crystal ball's right - try adding
style="height:100%;"
to your <BODY> tag

i.e.

<BODY style="height:100%;">

a pure CSS approach may be a better long-term solution

Hope this helps
-- addup --

Dec 22 '05 #3
My my crystal ball's right = If my crystal ball...

Dec 22 '05 #4

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

Similar topics

6
by: Don Sutter | last post by:
Hi all, I'm using Javascript to try to determine the final height of a division so that I can use that value in calculations to set the height of another division and also my body height. I'm...
5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
2
by: Tor Inge Rislaa | last post by:
How to change row height in a DataGrid I have DataGrid that is filled with data from a table in a DataSet. The content of the cells is text of more than one line (as a note field). What I...
3
by: steve | last post by:
Hi All How can I get the datagridview to redraw after changing the rowtemplate.height at runtime ( it is databound to a datatable) I have tried datagridview1.refresh etc to no avail (The row...
2
by: Richy | last post by:
Hi, I am running at a resolution of 1280 x 1024, but my maximised form returns a Me.Width of 1440 whereas System.Windows.Forms.SystemInformation.WorkingArea.Width returns 1280, which is the...
1
by: Mike Collins | last post by:
I am trying to create some pages and have them take 100% of the window, but I cannot get 100% to work. If I set the height of my div, the page displays a scroll bar and it looks like I set the...
4
by: hans.kindberg | last post by:
This is how my page looks like in IE6: http://www.freewebs.com/hasodaki/default.txt (without advertising banner, browsable with IE6 and to see the code with the other browsers)...
1
by: shapper | last post by:
Hello, I am working on an Asp.Net 2.0 web site and I need to set the height of a panel to 200px. Should I use the Asp.Net 2.0 panel height property or should I try to use a spacer.gif image?...
0
by: sunny10 | last post by:
Hello, I am new in asp.net and working on my first web application. I am using wizards and want to set its height in percentage let say 100%, but its not working, each wizard step shows different...
4
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am using a I frame in a page and trying to set the height to height=100% and it is not working. If I use height=600px it works. I find some stuff about the DOCTYPE on the internet but changing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
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...
0
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,...

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.