I have a simple set of HTML tabs using <ul> and <li> elements with some custom CSS styles. You can view the code on jsfiddle here.
Each tab follows this structure (for more details, please refer to the linked code):
...
<li class="icons ...">
<a href="#"></a>
<li>
...
As you can see in the code, the icon on each tab is actually set as the background image of the <li> element.
Now, my issue arises when I try to change the background color or image of the <a> element when the mouse hovers over a tab. Every time I attempt this, the hover effect ends up hiding the background image of the <li> element. How can I prevent this from happening?
----------In other words, my problem can be stated as follows:----------
Essentially, I have set a background image for the <li> element and would like to add another background image for the <a> element, which is nested within the <li>. However, when I apply both background images along with hover effects, the image for the <a> element ends up hiding the image for the <li>. How can I solve this issue?
-------------I appreciate the response from @hradac, as they have correctly understood my question.-------------