It's seems you are working on it at the moment, so I can't really comment on the specific CSS, but I can recommend a couple of general things.
Pull the CSS out into a separate file and include it from the index page (not the pages you include), that should make the behaviour more predictable (or at least it will be easier to read).
Seems when you include the "body" you are including an entire HTML document, meaning you have a DOCTYPE and an <html> inside a <td>. Most browsers will probably display this, but it certainly isn't valid HTML; more importantly, I don't know how it will handle the <meta>'s and <link>'s inside the nested <head>, and it's quite possible that won't be what you want.
I'd put just the content you are including in that file, and have a barebones template that includes it when you want to display it by itself (ie everything outside of <body>).
|