Your code representation is shown below:
/* Library Starts */
.dm-main-tab-menu > ul > li.Objects {
color: #ffffff;
background:url(https://cdn3.iconfinder.com/data/icons/glypho-free/64/cog-settings-alt-16.png) 22px 0px no-repeat !important; // Link working fine
padding:0px 0px 9px 0px;
margin:11px 0px 0px 3px;
}
.dm-main-tab-menu > ul > li.Objects > a:hover {
color: #ffffff;
background:url(gNew/Main/library_hover.gif) no-repeat 22px 12px !important; // Directory doesn't working
}
.dm-main-tab-menu > ul > li.Objects > .active {
color: #ffffff;
background:url(gNew/Main/library_hover.gif) no-repeat 22px 12px !important; // Directory doesn't working
}
This is the corrected version of your code:
/* Library Starts */
.dm-main-tab-menu > ul > li.Objects {
color: #ffffff;
background:url(https://cdn3.iconfinder.com/data/icons/glypho-free/64/cog-settings-alt-16.png) 22px 0px no-repeat !important;
padding:0px 0px 9px 0px;
margin:11px 0px 0px 3px;
}
.dm-main-tab-menu > ul > li.Objects > a:hover {
color: #ffffff;
background:url(https://cdn3.iconfinder.com/data/icons/glypho-free/64/cog-settings-alt-16.png) no-repeat 22px 12px !important; // Replaced directory with link.
}
.dm-main-tab-menu > ul > li.Objects > .active {
color: #ffffff;
background:url(https://cdn3.iconfinder.com/data/icons/glypho-free/64/cog-settings-alt-16.png) no-repeat 22px 12px !important; // Replaced directory with link.
}
The issue was likely with the directory reference in the "hover and active" CSS code. By replacing the directory with a direct link, the code now works properly.
In addition, please note that you cannot use the following format:
<li class="Content active"></li> - will not work.
Class names should not contain spaces, so it's recommended to use hyphens instead like this:
<li class="Content-active"></li> - This format will work correctly.