> the php code does a  browser check and if IE it loads a very small
> additional CSS bit to fix IE
>
This isn't a reliable way of doing things. Anybody can spoof the user
agent HTTP header, and many people do.

Opera, whose CSS standards compliance is much better than IE6, pretends to
be IE by default, so your browser check is going to have to test for the
presence of "Opera" in the string to exclude it.

Using Safari, I can enable a menu which lets me pretend to be one of a
variety of browsers, including IE6, in such a way that the server cannot
detect that I am using a browser that works properly. Result: if I go to
(say) my bank, which demands IE6 but works fine with Safari, and I then
visit your site without switching my user agent header back, I will see
your design as totally broken.

If you want to send some CSS to IE only, then use conditional comments
[Ref. 1 (and numerous posts to this group)]. This is exactly the job they
were designed for, and they are supported (indeed, encouraged) by
Microsoft, so you can use them and relax. A server-side solution is broken
by definition, and will haunt you from a maintenance perspective in years
to come. Believe me, I've seen the consequences of that mistake, and you
don't want to make it.

[Ref. 1]
<http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp>

Regards,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to