Page 1 of 1

PHP Include Files

Posted: Sun Jan 20, 2008 10:27 pm
by gemispence
Hello All - I have 3 include files that I'm using for each page on my web site, a header, a menu bar, and a footer. Everything is working fine except that I'm also using css styles and every page is inheriting the styles from my inclue files. For instance, if I want one page to have different styles, I created inline styles in the page, but it's overridden by the styles from my include files. Can someone please help?? :? Thanks in advance.

spencer

Re: PHP Include Files

Posted: Sun Jan 20, 2008 10:55 pm
by Christopher
Give the styles that you want overridden the same names and the styles that you want unique on each page names different than the ones in the global stylesheet.

Re: PHP Include Files

Posted: Mon Jan 21, 2008 6:59 am
by gemispence
Thanks very much Christopher. The problem is that the page that I want the hyperlinks (index) is still inheriting the inline hyperlink style from the menu include, even though I specified it to use an external stylesheet (<link type="text/css" rel="stylesheet" href="style_home.css">).