So I presume the problem is what I am seeing when I try to go to “Links” or “FAQ” – the way the background seems to overflow the border on the right.
I also notice that the formatting on the main page doesn’t always line up when the browser window is small – it looks fine when the browser window is maximized though.
I also just checked out the difference in the HTML code for the main page, versus the “Links” and “FAQ” pages. I think the problem relates to all the nested tables. The large middle area is being made up of tables that are nested at some points 4 levels deep (a table inside a table inside a table inside a table
– now say that 10 times fast).
On these pages, I checked the location of the embedded images – the “spacer.gif” and the “right-bg.png” images – which I presume are forming the right boundary?
On the FAQ and Links pages, it looks like these images are placed inside the last cells of a nested table, rather than the outermost table for this area, as in the main page.
Here’s what I mean. This illustrates where the images have been placed in the main page version:
<table>
<table>
<table>
... etc ...
</table>
</table>
right bg image inserted here
</table>
contrast this with the way that it’s coming out for the FAQ and Links pages:
<table>
<table>
<table>
... etc ...
</table>
right bg image inserted here
</table>
</table>
I think the problem is that your code is trying to insert the right background image into the wrong table, one of the embedded tables. Then, the final cells of the OUTER table are still getting the “parchment” image for a background (hence the overflow to the right).
Now, that’s just from looking at the html. I won’t proclaim myself a PHP guru – it’s fairly new to me, too – but I did teach a web page course (in addition to the usual programming courses I teach) this summer, and it involved an intro to basic PHP. As it is syntactically a mixture of C/C++, Perl, and unix shell script, I feel pretty comfortable reading it. (C++ is the main language that I currently teach).
If you want, I can try to take a look at the PHP. But not tonight (since I have to teach a morning class and I’m already up too late! :))