CSS depending on Browser
Posted: Mon Jul 17, 2006 5:56 pm
Not sure if this should be here or client side but I think the backbone of this is PHP.
I have two CSS files one for IE and the other for Gecko browsers. Had a look at some hacks and ways of selecting different css but all looked like they could change on the next release of the browser. I was wondering if I could use get_browser function in PHP and parse a different CSS file depending on results. If browscap files being quite large could this be around the houses way of doing it? Just don't like the idea of leaving it up to the client.
I have two CSS files one for IE and the other for Gecko browsers. Had a look at some hacks and ways of selecting different css but all looked like they could change on the next release of the browser. I was wondering if I could use get_browser function in PHP and parse a different CSS file depending on results. If browscap files being quite large could this be around the houses way of doing it? Just don't like the idea of leaving it up to the client.