PDA

View Full Version : General concept not working for site php/css


studio-steve
04-17-2008, 02:35 AM
I am creating a website and have created a php template page, with a php include menu at the top and php include footer at the bottom of the page.

The menu has its own css style as does the template page itself. It all works fine as a template page in the root directory on the server, but when i try creating image gallery pages or any other new pages based on the template page in folders off of the main root either one of the other (menu or main page) styles doesnt work.

Theres no logical order either sometimes the background image for the main page doesnt work sometimes the menu style is not working.

Ive tried merging the 2 style sheets together.

I have tried changing the path to the style sheets.

Im really stuck!

Any help would be cool.

SerenitiSFV
04-17-2008, 07:18 AM
What is your directory structure, and which files don't work?

studio-steve
04-17-2008, 08:44 AM
6274

ive tried to show the basic template page structure with this image.

if i place a copy of the template.php page off the root e.g

root/steve/template.php the css stops working for the menu.

in another area of my site i have placed the template.php file off the root in another way e.g

root/images/gallery/template.php and the background for the template.php page itself will not work but the menu does.

i have tried entering the address for css style sheet location and backround images in the style sheet as http:// prefix but it only works perfect on the root directory, ive also tried using the actual server path name /kunden/homepages/**/f186*******/htdocs

im not sure if its the actual style sheets that are not working or the way the php files are calling on them, i feel really stuck :(.