Forum Moderators: coopster

Message Too Old, No Replies

writing a php statement to change a css style

         

jarow

7:31 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



I have a header.inc file and a footer.inc file that is called to each new file that I create.

The header.inc file holds all the javascripts as well as calls the css, etc. It also begins the body and the footer.inc file closes the body. In other words in each new file that I create I have a php statement calling the header, and at the bottom of the file another statement that calls the footer. So each new file is really only part of the body as the title and head are found in the header.inc file.

What I would like to do is be able to change the background color of the body of a new file if I choose to do so. But obviously because each new file is only part of the body I cannot put a css style in the new file.

Is there any way of writing a php statement that I can place in a new file that would allow me to change the background-color of let's say #faunabody for that particular page?.

Hope this is clear...thanks alot

Timotheos

10:33 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some interesting concepts in this thread
[webmasterworld.com...]