Quote:
Originally Posted by franzelneekburm
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>).
|
Actualy, I'm only leaving the css in the document for the moment. I pull it out to layout.css when I have it looking the way I want it to. It's just easier to have one window open than a css window and a php window, which requires switching between the two to make changes.
I try to keep all documents as basic php files, headers included so that a migration to a diferent setup does not pose a problem. php_include just ignores any header info besides calls for css links and stylesheets.
Css called by an included document is valid under xhtml transitional, but not strict. I have no interest in moving to strict.
I'm actually calling it a night. You have no idea how long it took me to figure out how to make the two columns of links appear like that. This is not easy for a beginer. I just want the right side of the included document to stop overlapping.
Thank you for the comments. they are always appreciated.