[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

height of tables

Posted on 2002-07-22
7
Medium Priority
?
217 Views
Last Modified: 2010-04-09
Hi,
I have several nested tables. I have set all of their height's to 100%.  When I load the page, they don't fill the entire screen vertically.  However, when I reload the page, they do.
Doesn't make any sense to me...What's going on?
0
Comment
Question by:spandex44
  • 3
  • 2
  • 2
7 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7169942
which browser?
Could you post an example.
I suggest to use following

<style><!--
table { border-spacing:0px; margin:0px;padding:0px}
-></style>

<table cellpadding=0 cellspacing=0> ... </table>
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7169952
height on a table is non-standard, so you cannot rely on consistent behaviour across browsers.  Percentage heights are just about the most unreliable thing there is.  Using nested tables for layout just compounds the problem; especially in Netscrap.  If yo post the code or a link to the page, perhaps we can hack it enough to make it work the way you want, but a better approach would be to do your layout control with CSS.  Tables were never intended to be used to control layout, and are the most mis-used and abused elements in HTML.

Cd&
0
 

Author Comment

by:spandex44
ID: 7170489
Well, I am looking at the page with IE 6.0.

The page can be seen here:
http://www.pcgamesforyou.com/gamers/test/index.asp

Any page at that site has the same problem (just click on any links).  The texture is supposed to go all the way to the bottom of the screen, but upon initial loading, it stops about 20 pixels before...

Any suggestions?  How could I do this with CSS?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 800 total points
ID: 7170509
Try this in the head:

<style>
body {margin:0px 0px 0px 0px}
</style>


I just came off of another question with a similar problem with IE6.  It seems to apply a default margin around everything.

If that does not work try setting the margins to -20px.

Otherwise you will have to see if Micro$oft puts out a bug fix or decides that is an enhanced feature of the browser.

Cd&
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7170518
- are all tables like:
   <table cellpadding=0 cellspacing=0>
- do all width and height values the real values of used pictures?
- is the summ of all heights the height of the outermost table?

I also suggest
   border-collapse:collapse;
in the table stylesheet (not shure if IE handles this)
0
 

Author Comment

by:spandex44
ID: 7170594
I set the margins to -20px and that worked.  Thanks a lot!

Thanks to the others as well!
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7171641
An ugly solution, but you hvae to get around the browser bugs somehow.  Glad we could help.  Thanks for the A. :^)

Cd&
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

834 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