Targeting Firefox With CSS


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

This solution is based on Mozilla specific CSS extension. Other browsers will ignore this rule.


Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. @-moz-document url-prefix(){
  3. H5 { color:red; }
  4. P { margin-left:20px; }
  5. /* other special styles for FireFox here */
  6. }
  7. </style>

URL: http://www.apphp.com/index.php?snippet=css-targeting-firefox-only

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.