Posted By

apphp-snippets on 03/06/13


Tagged

css Firefox targeting


Versions (?)

Targeting Firefox With CSS


 / Published in: CSS
 

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

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

  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>

Report this snippet  

You need to login to post a comment.