Posted By

apphp-snippets on 07/08/14


Tagged

css chrome targeting


Versions (?)

Targeting Chrome With CSS


 / Published in: CSS
 

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

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

  1. <style type="text/css">
  2. @media screen and (-webkit-min-device-pixel-ratio:0) {
  3. H5 { color:red; }
  4. P { margin-left:20px; }
  5. /* other special styles for Chrome here */
  6. }
  7. </style>

Report this snippet  

You need to login to post a comment.