PDA

View Full Version : Oddity: Linked stylesheets no longer work, but import css does ,on testing server.


neilo
01-13-2010, 10:31 PM
Dear Gurus,

As of a few hours ago, any php page I have that references a stylesheet using <link> does not display the page with the styles applied when previewed on the testing server .

If I use @import, the styles show fine.

This is happening, apparently, with every php page 'linking' to css I have, and I've been through quite a few sites to check.

Uploaded to remote, the linked css displays OK.
Html pages using 'link' test locally fine
All pages with using 'import' are good.

PHP pages I was testing a few hours ago that link to css were testing fine, then suddenly, no styles.

This is driving me bloomin' loopy. If anyone has any thoughts, I'd be pleased to hear them, - they don't even have to be relevant.

neilo
01-14-2010, 02:28 AM
Seems to be working again.

For anyone who has the same problem, here are the steps I took to fix it. (Not sure which one did it, but the sequence seemed to work).

1. Stayed up all night fretting.
2. Had a cup of coffee and a fag.
3. Went to the toilet.

Office Guy-172461
01-14-2010, 07:34 AM
Sounds like the makings of an all-purpose problem solving guide.

BTW I assume you are talking about a cigarette. It means something entirely different in the US. :)

neilo
01-14-2010, 08:10 AM
Oops, yes that's what I meant. :) (Besides, the streets were deserted.)

John Langer
01-14-2010, 09:20 AM
I find hitting my head against the wall three times sometimes works.