0

How can i change this for one browser while having it differently for another??

h2 {
    font-size: 150%;
    color: red;
}  

Thanks. like making it blue or 175% on another The part of solution by dude below.

Push 1
  • 49
  • 8
  • Possible duplicate of [How do I detect the user’s browser and apply a specific CSS file?](http://stackoverflow.com/questions/5621749/how-do-i-detect-the-user-s-browser-and-apply-a-specific-css-file) – Wickramaranga Aug 04 '16 at 03:07
  • Possible duplicate of [Targeting only Firefox with CSS](http://stackoverflow.com/questions/952861/targeting-only-firefox-with-css) – vkopio Aug 04 '16 at 03:13

1 Answers1

3
@-moz-document url-prefix() {
    h2 {
        font-size: 150%;
        color: red;
    } 
}

See it here

See other Firefox specific css extensions here

Simple writeup on 'Tricks' here

Edit

About other browsers: You can find a lof of useful browser-specific CSS 'hacks' on browserhacks.com

DDan
  • 8,068
  • 5
  • 33
  • 52