Hello, I had provided the first reply to your post...
I quickly read through the posts and it seems now you are having problems understanding what the role of your css and your includes play in your case.
In your case, the includes are only telling the server where to get the next bit of code from. when you type 'include("whateverfile")' you are telling the server to insert everyting from 'whateverfile' . The css serves only as design/layout instructions. so technically the php includes and css do not intereact
If your webpage looked like this.
PHP Code:
index.php
<head>
some info
<code to insert stylesheet.css>
</head>
<body>
some more info
another line of info
<? include("header.php"); ?>
more info
even more info
</body>
and if header.php looked like this
Code:
header.php
menu item 1
menu item 2
menu item 3
this is what you will end up with when the user tries to view the page
PHP Code:
<head>
some info
<code to insert stylesheet.css>
</head>
<body>
some more info
another line of info
menu item 1
menu item 2
menu item 3
more info
even more info
</body>
as you see, header.php was literally pasted right were the include was placed.
this final code is then sent to the user and te css is applied
meaning that everyting (header.php and index.php) makes use of the css at once.
You actually answered part of my question earlier when I asked about placement. With my original layout, I had things set up so that my footer was a certain percentage up from the bottom of the page and set the height for it. That was part of what I was trying to ask about whether or not this was still possible to do--or would that, as well, still require a stylesheet to accomplish?
with all that being said.... it is still possible for you to position your elements the same way you did before. this is because each included file is affected by the css code at the same time (which after all the 'pasting' has been done).
In my opinion, if you already had the page looking the way you wanted to before you started to use includes, the only css modifications you may need to make is making it an external stylesheet (which i believe u have done), and making sure each page on your site links to it.
hopefully i didnt confuse you more, and hopefully i actually answered what you wanted answered
good luck!
Bookmarks