windows to the root
html element if the user was on Windows and
not-windows if they weren’t. With that class in place, I could write platform specific CSS.
navigator.platform property for the substring
win, and add the class to the
html element depending on the result.
Here’s the working script I added to my HTML document
<head> above my CSS styles 2: