Targeting Chrome With CSS

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

[View All Snippets]
Show Plain Text »
  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>

Result for Chrome:

This is a <H5> element with red color.

This is a paragraph <P> element with left margin 20px.

Create Your Free Account
Please remember that this information is essential to use our services correctly.
After creating the account you will be able to download all of our FREE products.
Fields marked with * are mandatory

Please send me information about updates, new products, specials and discounts from ApPHP!
We recommend that your password should be at least 6 characters long and should be different from your username/email. Please use only letters of the English alphabet to enter your name.

Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.

All your private data is confidential. We will never sell, exchange or market it in any way. Please refer to Privacy Policy.

By clicking "Create Account", you are indicating that you have read and agree to the ApPHP Terms & Conditions.

Quick Registration with: Facebook / Google