Home  »  CodeSnippets   »   How to Apply CSS to Firefox Browser Only

How to Apply CSS to Firefox Browser Only

Posted: March 5, 2022 | by Michael Bright

A simple example on to apply CSS rules to the Firefox browser only.

@-moz-document url-prefix() { 
  .selector {
     color: lime;
  }
}

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.