Targeting Chrome With CSS
This solution is based on Chrome specific CSS extension. Other browsers will ignore this rule.
[View All Snippets]
[View All Snippets]
Show Plain Text »
Result for Chrome:
- <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>
Result for Chrome:
This is a <H5> element with red color.
This is a paragraph <P> element with left margin 20px.