Targeting only FireFox with CSS - Stack Overflow


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  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>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.