Return to Snippet

Revision: 66818
at July 8, 2014 17:56 by apphp-snippets


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

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

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

Initial Title
Targeting Chrome With CSS

Initial Tags
css

Initial Language
CSS