Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Background does not take effect on dDiv if already defined
Message
From
22/08/2017 14:59:53
 
 
To
All
General information
Forum:
HTML5
Category:
Troubleshooting
Title:
Background does not take effect on dDiv if already defined
Miscellaneous
Thread ID:
01653591
Message ID:
01653591
Views:
47
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
Next
Reply
Map
View

Click here to load this message in the networking platform