Click to See Complete Forum and Search --> : CSS won't cover all pages


blue_scream
03-16-2006, 04:20 PM
Hi Folks,
Total noob here. I've set up a css file (mystyle.css) for a couple of PHP pages but it's only styling one page. The first page has a simple 2-field form in it. When I click 'Submit Query' it links to the resulting (php) page as it should and the results are correct.

The only problem is it's a white page with black text - not affected by the .css at all (should have colourful fonts and backgrounds like the first). The mystyle.css file is in the same 'html-public' folder as the others.

I have this line in the <head> tag of both PHP files:
<link rel="stylesheet" type="text/css" href="mystyle.css">

Any clues anyone?
Thanks.

ray326
03-16-2006, 04:28 PM
Is the form response page in the same directory as the form page?

blue_scream
03-16-2006, 04:38 PM
Yes it is, same folder.

ray326
03-16-2006, 05:01 PM
Guess we'll need a link.

blue_scream
03-16-2006, 05:04 PM
Sorry, it's only local at the moment. Should I just put code in a post?

felgall
03-16-2006, 05:42 PM
Probably a file in the wrong place or being referenced from the wrong place.

blue_scream
03-16-2006, 05:46 PM
All 3 files are in the html-public folder. As mentioned both .php files have:

<link rel="stylesheet" type="text/css" href="mystyle.css">

in the <head> tag.

It works for one page, not for the other ?!?

blue_scream
03-16-2006, 05:50 PM
Ah, sorry, correction:

All 3 files are in html-public\testing

Does that mean it should be href="testing\mystyle.css"> ???

Wouldn't have thought so since all files are in the same directory.

ray326
03-16-2006, 09:28 PM
No, if they're all in the same place then no extra paths are needed for any of them.

blue_scream
03-20-2006, 04:28 PM
Does anyone have any more clues on this ?!?

blue_scream
03-20-2006, 04:39 PM
Crisis over. I realised I didn't have my text in <p> tags on the second page. Noobs eh, what'll they think of next?

<goes and hides in corner for a while>