Background color does not change in Firefox with onmouseover

Posted on 2008-11-17
Last Modified: 2012-05-05
I have a datalist with a main div and sub div's. In IE the mouseover works great. The backcolor changes and the cursor changes in a hand. In Firefox the cursor changes as well but the background remains the same. I have browsed the net and could not find a solution. I've tried with css and :hover. Nothing works. I have a table on another page and the same code works just fine in IE and Firefox. The problem is I can't work with a table for this page. I hope some expert can make sense of this inconsistency. Thanks!
<div id="dataListMain" style="cursor:hand; cursor:pointer" onmouseover="'#F4F5F6'" onmouseout="''">

Open in new window

Question by:PdeLorme
    LVL 15

    Accepted Solution

    The code works fine in my firefox. Check if other styles are having conflict (dataListMain?).
    And the color change is not very obvious IMO. May be you try change to another color and test again.

    Author Closing Comment

    Afterall it seems not to be the color but another div that was the problem. Thanks for your advice.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    The viewer will learn how to dynamically set the form action using jQuery.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now