nick
nick

Reputation: 1246

css media query that targets firefox pc only

I want to add a specific style to my page but only on firefox running on a pc. I use this code to target just mac but what would be the windows equivalent? and Is there a way to do it with just media querys not javascript?

var FF = !(window.mozInnerScreenX == null);

if(FF) {
    if(navigator.platform.indexOf('Mac')>=0)
         {
            // is a mac and on firefox
         }

Upvotes: 5

Views: 6566

Answers (2)

oqx
oqx

Reputation: 2377

MDN Mozilla CSS Extension you can read all possible CSS extensions for mozilla also you can check this answer

Upvotes: 1

Benjamin
Benjamin

Reputation: 2670

Css hack for firefox

@-moz-document url-prefix() { 
  .cssSelector {
     font-size: 14px;
  }
}

Reference

Upvotes: 8

Related Questions