Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Background does not take effect on dDiv if already defined
Message
De
22/08/2017 14:59:53
 
 
À
Tous
Information générale
Forum:
HTML5
Catégorie:
Dépannage
Titre:
Background does not take effect on dDiv if already defined
Divers
Thread ID:
01653591
Message ID:
01653591
Vues:
46
I am using a standard code to achieve the same effect over a div. Usually, the following would work:
<Style>
.MouseOver
{
   background-color: #eeeeee;
}

.MouseOverOut
{
   background-color: #none;
}
</Style>

<div style="background-color: #ffffff; width: 222px; height: 198px; padding: 16px; border: 1px solid #CCCCCC;"
 onMouseOver="this.className='MouseOver';this.style.cursor='pointer'" onMouseOut="this.className='MouseOverOut'"></div>
However, on a div, the only way I can make this work if to remove the background-color: #ffffff on the div tag.

For some kind of reason, the mouse over effect does not work if a definition already exists. Can someone explain that?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform