Here's how my page looks when loaded correctly

Here's how my page looks when loaded incorrectly (50-75% of the time).
- tom moody 7-29-2004 10:36 pm



That's exactly what I see. I looked at the source and my "CSS flash" theory isn't a factor here. You have CSS in the header, not in a linked file, and even then, the CSS doesn't have anything to do with this layout issue. However, I don't think the table syntax in the body of the page is clean.

In psuedo-code, it's some thing like this ...

table (set explicitly to two columns)
......table row (only one column)
............nested table (most of the page is here)
......end row
......table row (column span of 3)
............(page footer)
......end row
end table

The syntax problem is the inconsistent number of columns. The table is set up with two, but the first row has only one, and the last row says it's spanning three.

I can postulate what's going wrong with Firefox. It may sometimes start laying out the page before it sees the footer, to give the marginless look. If it sees the footer before it starts the layout, it centers the body with margins.

The solution is to clean up the page template so that the table syntax is clean. I'm guessing that's a Jim thing.
- mark 7-30-2004 12:12 am [add a comment]


Well, here's the 2 column table page template if anyone wants to take a crack at fixing it. There is a little PHP in there, but not too much, and it doesn't really matter. The HTML is the problem. (Obviously the heavy lifting PHP stuff is in the included files, especially $page_engine.)

I'll try when I get a chance.
- jim 7-30-2004 1:11 am [add a comment]


Whoa, page engine has a lot of stuff. I didn't look at it, because I can see the problem in the 2 column table page template. Is Tom using a modified version? Because what's in your html doesn't match what I'm seeing in the source. The differences are highlighted in red


table (set explicitly to two columns)
......table row
............table data
..................(left text inserted with php script)
............end table data
...........table data
..................nested table (most of the page is here)
...........end table data
...........table data
..................(very narrow column with nothing in it)
...........end table data
......end table row
......table row (column span of 3)
............(page footer)
......end table row
end table


The stuff in bold is just gone from Tom's source, and from looking at the html it shouldn't be. Even if the php script doesn't add in the "left text", it doesn't make sense that the tags would just dissappear. And the last column on that row doesn't even have any php near it. My best guess is that Tom's template is non-standard.
- mark 7-30-2004 1:33 am [add a comment]


Whoops. Tom is using the one column table. That probably explains why he gets different results from most others.
- jim 7-30-2004 1:36 am [add a comment]


Probably it's the cols=2 in the big table. Should only be 1, right? I'll try to change it.


- jim 7-30-2004 1:39 am [add a comment]


Also changed the colspan=3 in the td for the navigation links at the bottom (I must have just copied and pasted that in from the 2 column table without changing it.)

Anyway, did that work?
- jim 7-30-2004 1:42 am [add a comment]


Hmmm ... the one column template doesn't seem to match either. It has cols=1, whereas tom's source shows cols=2. And the footer doesn 't have the colspan=3 that I see in tom's source.
- mark 7-30-2004 1:44 am [add a comment]


we're commenting out of sync ... I'll go look at the tom's page ...
- mark 7-30-2004 1:45 am [add a comment]





add a comment to this page:

Your post will be captioned "posted by anonymous,"
or you may enter a guest username below:


Line breaks work. HTML tags will be stripped.