I need to define float:none!important; for mozilla only, because in another browsers I need float:left. It's there a manner to define float for mozilla only? Standard solution with -moz-float... prefix doesn't works
Asked
Active
Viewed 709 times
3 Answers
1
use this and put your mozilla css only inside this it should be only affect mozilla browser
@-moz-document url-prefix() {}

morgan9999
- 731
- 1
- 11
- 30
0
you can try this:
@-moz-document url-prefix() {
#my-id { font-size: 100%; }
}
This website has more options as well
You can place this in your CSS file or between your <style type='text/css'>
tags in your HTML. Works Fine!

Sudheer
- 2,955
- 2
- 21
- 35
0
That begin with prefix
"-moz". Prefix "-moz"
combined with -document url-prefix() is used in particular when creating additions to Firefox.
/* Firefox */
@-moz-document url-prefix()
{
#your-id { float: left; }
}
CSS hacks for Mozilla Firefox, Opera, Safari and Internet Explorer

Ravi Patel
- 5,121
- 2
- 25
- 44