Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: not2easy
I created an html doc that links to an external stylesheet. After I got the layout just right, I moved portions of my html doc into php include files. (The header info is in one include file; the navigation is in another; etc.) I then created a new index file to assemble all of my includes.
When the new index file runs, it assembles just fine. But there are minor layout changes --- a margin or padding as been inserted at the top of the document, and a div that should be centered is not.
The source code of the assembled document is identical to the source code of my original html doc. So what kinds of things could account for these little layout changes?
I didn't want to inundate this thread with code just yet, figuring that there may be a broad answer to this question. I'm happy to post code if needed though.
background:#fff url(../myFolder/myFile.gif) top repeat-x;
background:#fff url(../../myFolder/myFile.gif) top repeat-x;
I triple-checked the code, swa66, and did find an empty square in the source of the assembled php page. Tis a character encoding thing, I presume. I can take it from here. Many thanks.
As a simple html doc linked to a css file, the layout is perfect in both FF2 and IE7. When I convert the html file to a php file, and import the html with includes, the layout is still perfect in FF2, but it changes in IE7.
I double, triple and quadruple-checked the source codes from the original html doc, the php file as rendered in FF, and the php file as rendered in IE --- and they are all ABSOLUTELY identical. And they are all linked to the same css file.
Would the problem have anything to do with my hosting company's php install? Should I move this question over to the php forum?