I had a background image for one of the container divs in my page. I positioned it to a specific pixel using its style properties. It worked fine in the internet explorer but was located to a wrong position when displayed by firefox. So i wrote the following code to get around this problem, it worked.
<div id="container" style="background-image: url(images/navigationMenut/left-tile.jpg);background-repeat: no-repeat; background-position: left 109px;">
</div>
I insert the following script right after the container div.
<script>
// checks the browser type to see if it is firefox
if (navigator.appName.indexOf('Netscape') != -1)
{
// changes the position accordingly
document.getElementById('container').style.backgroundPosition
= "left 107px";
}
</script>
This approach can be applied to all style conflicts between firefox and internet explorer.