Solved

expand lenght of table 100% for any screen resolution--urgent 500 points

Posted on 2007-03-29
5
145 Views
Last Modified: 2010-04-09
i know how to expand the width of a table to 100%   but when i try to also expand the lenght of a table 100% it will not do it.

is there a trick to do this?
this is my code
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#000000">&nbsp;</td>
  </tr>
</table>
0
Comment
Question by:gianitoo
  • 2
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Jaax
Comment Utility
By length dont you mean width ?
What exactly do you mean by length ?
0
 
LVL 1

Author Comment

by:gianitoo
Comment Utility
height
0
 
LVL 16

Accepted Solution

by:
ThinkPaper earned 500 total points
Comment Utility
Read this: http://apptools.com/examples/tableheight.php

Table height isn't really valid code to begin with and isn't widely supported since tables are aimed at displaying tabular data - not layout. Any specific reason the table height needs to be 100%? If it's a layout/display issue, consider using DIVs instead.

Either way.. I found this code off the web.. it may work for you..
<html>
   <head>
      <style>
         html, body {height: 100%; margin: 0px;}
      </style>
   </head>
   <body>
      <table style="height: 100%;border-width:1px;border-color:black;" height="100%">
         <tr><td>content</td> </tr>
      </table>
   </body>
</html>
0
 
LVL 1

Author Comment

by:gianitoo
Comment Utility
look at this website
http://www.justmarketing.com/jmi/presentation/jmipres.html

i would like the white to be all the way down even with no content.  it will just look much better i think.  what do you recommend?
0
 
LVL 16

Expert Comment

by:ThinkPaper
Comment Utility
You are using tables as a way to design and layout the page. It's better to use divs instead. It's much more flexible and is the correct way to use it.

However, the code above should work fine.

For info on height % on divs, check:
http://www.webmasterworld.com/forum83/200.htm
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now