And Firefox 2.0.0.8 on Linux still sees no styles whatsoever, nor does it see any content in indexcss.php.
Colin Mcgarry wrote: > It was a problem in the php. As "Opera" is position 0 in > $_SERVER['HTTP_USER_AGENT'] the script wasn't putting OPERA the browser. > I'm still not sure why. > I've put in if (strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== false) > to get round the problem. > > The reason for browser searching is to accommodate browser quirks in the > CSS. > > Colin Mcgarry wrote: >> Thanks for the replies. >> The page now validates. Most of the problems came from imported scripts. >> >> Firefox and IE7 see indexcss.php as a css file. Opera sees it as a >> blank page. >> >> David Hucklesby wrote: >> >>> On Fri, 09 Nov 2007 21:11:36 +0100, Colin Mcgarry wrote: >>> >>> >>>> I've just set up Opera to see how it deals with my web pages. I was >>>> surprised to see >>>> my home page has no css with Opera. >>>> the page is http://www.cpmac.com and the css is a php file that begins >>>> >>>> >>>> >>> [code snipped] >>> >>> Hmm. I certainly see a styled page on Opera here -- Opera 9.24 >>> on Win XP SP2. But you seem to be browser sniffing using the user >>> agent string -- a dodgy technique at best. Why? >>> >>> Your drop-down menu will not close completely though. One menu item >>> is always open, no matter what. >>> >>> I'd investigate further if the page didn't take two minutes to load. >>> >>> Cordially, >>> David -- David [EMAIL PROTECTED] authenticity, honesty, community ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/