Background color does not change in Firefox with onmouseover

Posted on 2008-11-17
Medium Priority
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="this.style.backgroundColor='#F4F5F6'" onmouseout="this.style.backgroundColor=''">

Open in new window

Question by:PdeLorme
LVL 15

Accepted Solution

quincydude earned 1500 total points
ID: 22981227
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

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

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Why WooCommerce is one of the majorly favored choices when it comes to having an eCommerce store. This article will acquaint you with some reasons that I believe make it one of the best eCommerce platforms available.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

571 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