mozilla specific css

Harry picture Harry · Sep 20, 2011 · Viewed 13.2k times · Source

Possible Duplicate:
Targeting only Firefox with CSS

I need to target firefox specifically because of their min-width / box-sizing bug.

So I have 1 normal min-width, but for mozilla I want a different min-width.

Is there any pure CSS/HTML solution available?

Thanks

Answer

sdleihssirhc picture sdleihssirhc · Sep 20, 2011

You can use the following to target (as far as I understand it) all versions of Firefox, and nothing else:

@-moz-document url-prefix() {
    /* firefox-only css goes here */
}