Targeting Chrome With CSS


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

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


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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.