Forum Moderators: open

Message Too Old, No Replies

Table only 100% after refresh

table not 100%

         

ghjr

2:16 am on Nov 13, 2003 (gmt 0)

10+ Year Member



The table has the width/height set to 100% and contains three columns: two side panels without any width/height numbers, and the middle content column with a fixed width.

Whenever I connect to the site the table only loads around 95% height and 95% width... then when I refresh it pops to 100%.

Ideas?

ghjr

tedster

5:18 am on Nov 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, ghjr.

You didn't say what browser you're seeing this behavior in, so I assume it must be Explorer - knowing the version might help as well. My first suspicion is that there is a problem with the table, row or cell tags -- but let's talk about how to approach troubleshooting.

First, I created a test page with the basic table HTML you described -- and did not see the behavior. So some element between the basic code and your actual full page there is a problem. Either something is triggering a bug, or you've got something that's not valid code. I tested in IE6 with both strict and transitional DTDs, and in both Standards and Quirks mode.

Step 1
Validate the code with the W3C's free service. To do this you will need to begin the document with a DTD (document type declaration) -- that's an element of your page that you didn't mention. This might be an issue of whether your DTD puts the browser into Quirks mode or Standards mode. This also may not be the issue, but it's good know for sure.

Step 2
After that information is nailed down, if you still see the problem, then start removing elements from the page, one by one, and re-testing. Somewhere along the line you should see the behavior shift -- and that most likely means you've discovered what factor is triggering the problem.

I'm also guessing that you've described the main layout table for your page -- and that there are no elements either before or after the table in the body of the HTML. If there are other elements, then as you test remove them first.

You're the detective now, and if you uncover evidence, let us know what you discover and if it fixes the problem.

ghjr

1:53 pm on Nov 13, 2003 (gmt 0)

10+ Year Member



Thanks for all the help tedster... you're probably gonna want to kill me if I tell you it was all just the margin settings hehehe (I had forgotten to set the right and bottom ones to 0)!

You did bring up some good ideas for troubleshooting webpages, thanks!

best regards,
ghjr