Posted By

WebPersonality on 03/12/11


Tagged

css Firefox


Versions (?)

Targeting only FireFox with CSS - Stack Overflow


 / Published in: CSS
 

URL: http://stackoverflow.com/questions/952861/targeting-only-firefox-with-css

  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <style type="text/css">
  6. @-moz-document url-prefix() {
  7. h1 {
  8. color: red;
  9. }
  10. }
  11. </style>
  12. </head>
  13. <body>
  14.  
  15. <h1>This should be red in FF</h1>
  16.  
  17. </body>
  18. </html>

Report this snippet  

You need to login to post a comment.