Click to See Complete Forum and Search --> : div.box:hover{}


gert cuykens
11-18-2004, 04:06 AM
i want to make a box that change color when you hover over it.

div.box:hover{} doesnt work.

NogDog
11-18-2004, 09:45 AM
If you are trying this in M$ Internet Explorer browser, it only supports the hover pseudo-class for "a" elements.

Ben Rogers
11-20-2004, 04:55 PM
To elaborate on what teh Nog's saying, there are browsers besides IE (not sure if you knew this). Many of them render pages properly, unlike IE, which doesn't conform to standards. It's easier and more practical to build your site using a good browser (http://www.mozilla.org/products/firefox/), and then fix it for IE.