KOMPX.COM or COMPMISCELLANEA.COM   

CSS. Target Firefox only

Making CSS styling to target Firefox web browser only:

This text is red in Firefox

HTML code:


<p>This text is red in Firefox</p>

CSS code:


@-moz-document url-prefix() {p {color: #c00;}}

Unlike the method of styling elements for Opera browser, it is essentially a hack - since the rule originally is intended for a different purpose. But lack of support in browsers other than Firefox allows to isolate code for use by Firefox web browser only.

Other browsers with Gecko web browser engine, like SeaMonkey 1.0+ or older Netscape 9.0, do support the hack as well. And there is also one more browser where text gets red - ELinks, an advanced text-based web browser with some support for CSS.

Browser support
Windows
Firefox 1.5+
SeaMonkey 1.0+
Netscape 9.0
ELinks
Linux
Firefox 1.5+
SeaMonkey 1.0+
Netscape 9.0
ELinks
More