Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identify Browser and OS with CSS?

Tags:

css

I know it is not the correct thing to do to code specific CSS for specific Browsers or OS's but in a site I am building there are certain elements which do not render well in specific browsers. For example certain elements are not supported in IE8 or look weird in small iphone display.

Therefore my question is - using just CSS is it possible to identify the users browser and os and allow me to code different display option?

Dank u wel.

like image 470
JWestphal Avatar asked Nov 28 '22 10:11

JWestphal


1 Answers

Sadly I dont believe it possible with just pure css for each system.

However you can use combination of css and js to see system.

See here: http://rafael.adm.br/css_browser_selector/

like image 109
Mathias Online Avatar answered Dec 06 '22 03:12

Mathias Online