I'm having problems with css in firefox, therefore I want to import a css file only if the browser is FF
Actually, I need to import this styles:
.searchbutton{
position:absolute; right:3px; width:25px;
top:3px;
}
#buscarmain{ bottom:12px;
}
EDIT:
Many have argued that I shouldn't use a special statement for FF, since FF is most probably to be correct, compared to other browsers.
However, in this case all browsers print the same page (IE, Chrome, Opera, Safari) and FF displays it in another way. I must achieve the same visualization for all browsers, therefore I need a special FF statement
Here is how we can target CSS styles only for Firefox:
<style type="text/css">
@-moz-document url-prefix() {
h1 {
color: red;
}
}
</style>
Source: Targeting only Firefox with CSS
You might try the css browser selector
solved the problem
just added:
<script type="text/javascript">
if ( $.browser.mozilla == true ) {
document.write("<link type=\"text/css\" rel=\"stylesheet\" href=\"FF.css\">");
}
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With