Targeting Firefox With CSS
This solution is based on Mozilla specific CSS extension. Other browsers will ignore this rule.
[View All Snippets]
[View All Snippets]
Show Plain Text »
Result for FireFox:
- <style type="text/css">
- @-moz-document url-prefix(){
- H5 { color:red; }
- P { margin-left:20px; }
- /* other special styles for FireFox here */
- }
- </style>
Result for FireFox:
This is a <H5> element with red color.
This is a paragraph <P> element with left margin 20px.