I can find numerous discussions like this on the web however I cannot find anyone to particulary target my problem:
I use Google Webfonts for a site. On all platforms except Windows 7 the fonts look good. But on Windows 7 I need to adjust the font weight for some of the font versions. I can successfully use a conditional statement for IE 9, but how do I actually target FF and Chrome in Windows 7 only? The font rendering in Win XP (IE 8 and below, and also FF, Chrome) is perfect, and also Mac OS is fine (FF, Safari, Chrome).
I found many hacks but none that changes CSS for a specific windows version unregarding browser…???
Thanks in advance!
It can’t be done without JavaScript. Specifically, you need to check
navigator.userAgent‘s value. If it containsNT 6.1, then it means the client is running Windows 7.NT 6.0is for Windows Vista, andNT 5.1is Windows XP. There is no way to do this using pure CSS, unfortunately.A sample:
I hope that helped!