473,403 Members | 2,284 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,403 software developers and data experts.

how to create table height 100% ?

i want to create my page with 100% height. <table height="100%"works but is not correct by default. i saw various information how
to do it with stylesheet. i really have problems to create my page. i want to have header on top and footer on bottom. content
should be on top of the middle part. i always got scrollbars, even if my page isn't too large. perhaps, someone can show me to do it
right. the following code describes my wish.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style>
td { font-family: verdana; font-size: 8pt }
html, body { height: 100%; margin: 0 ; width: 100%; background-color: #C0C0C0 }
#wrapperA { height: 100%; margin: 0 ; width: 100%; background-color: #FFC0C0 }
#wrapperB { height: 100%; margin: 0 ; width: 100%; background-color: #C0FFC0 }
#wrapperC { height: 100%; margin: 0 ; width: 100%; background-color: #C0C0FF }
</style>
</head>
<body>
<table id="wrapperA">
<tr>
<td>
<table id="wrapperB">
<tr>
<td>header</td>
</tr>
<tr>
<td><img alt="" height="1" src="/images/dot.gif" width="100%" vspace="5"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td height="100%"<!-- doesn't work, creates scrollbar, must be css, but how -->
<table id="wrapperC">
<tr>
<td>&nbsp;</td>
<td>menu</td>
<td>&nbsp;</td>
<td>body</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><img alt="" height="1" src="/images/dot.gif" width="100%" vspace="5"></td>
</tr>
<tr>
<td>footer</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

Sep 29 '06 #1
0 2118

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

Similar topics

10
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the...
1
by: hanganum | last post by:
Hi, I am trying to build one HTML page with a table occupying the entire page and having two rows. The upper row contains data, while the lower row contains two buttons. My problem is: I want...
3
by: fred | last post by:
Why does not the below code work in IE or FF? I have a table taking up the full browser window made up of three rows. The middle row has an ID of "row" and contains a div with an ID of "div". ...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
4
by: FayeC | last post by:
I have tried to use a php code (found it online) to create a gallery but I am wondering if thereare any other PHP options besides using EXIF. The reason is that the images I am using for the...
6
by: jslaybaugh | last post by:
I'm working on an ASP.NET 2.0 application and am having trouble with a very simple table layout. Using ASP.NET 2.0 it defaults to XHTML 1.0 Transitional and I am trying to comply. However, I...
3
by: Chifo | last post by:
hello. i have a problem with a populate html table with data from table here it's the problem two querys retrieving data from table, one of querys show me a colletion of data from 6:00 am to...
7
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>
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...

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.