Chrispinus Onyancha Chrispinus Onyancha - 1 year ago 139
Less Question

How to change CSS according to user Operating System

How can i write CSS that handle a different effect on Mac OS and different on other OS versions.


height: 100%;
width: 100%;
overflow: hidden;

.(win and linux){
height: 100%;
width: 100%;
overflow: scroll;

Answer Source

You cannot do this with pure CSS, you can detect OS like MAX or WIN with JavaScript, and then use that to load different CSS styles.

You can use the result of window.navigator to find information about the OS.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download