[css-d] Browser hacks vs PHP vs JS for browser detection

2011-01-06 Thread Dougie McGilvray
Hi people, I just wondered if people had an opinion about the alternative of using hacks/conditional statements, php or js to account for browser variation? Obviously, if you dont need php, there's no point using php for browser variations. But checking the user agent header in php doesn't seem to

Re: [css-d] Browser hacks vs PHP vs JS for browser detection

2011-01-06 Thread Chetan Crasta
On Thu, Jan 6, 2011 at 10:18 PM, Dougie McGilvray wrote: > Hi people, I just wondered if people had an opinion about the > alternative of using hacks/conditional statements, php or js to > account for browser variation? Whenever I need to target only IE, I use Conditional Comments. I have found t

Re: [css-d] Browser hacks vs PHP vs JS for browser detection

2011-01-06 Thread Thierry Koblentz
> Is it just a case of using the right tool for the job? It would seem > logical to me - if you are using PHP anyway of course - to check the > user-agent header and add a class to the body tag? I realise people > can change the header sent by their browser, but how many people > actually do that?

Re: [css-d] Browser hacks vs PHP vs JS for browser detection

2011-01-06 Thread David Laakso
On 1/6/11 12:23 PM, Thierry Koblentz wrote: Is it just a case of using the right tool for the job? It would seem logical to me - if you are using PHP anyway of course - to check the user-agent header and add a class to the body tag? I realise people can change the header sent by their browser, bu

Re: [css-d] Browser hacks vs PHP vs JS for browser detection

2011-01-06 Thread G.Sørtun
Hi people, I just wondered if people had an opinion about the alternative of using hacks/conditional statements, php or js to account for browser variation? My opinion is that browser variations have to be fairly large to bother, but of course: designers often do, so we need methods for maki