I have link <a></a>
and inside this link i have canvas and normal text.
Both elements have setted opacity (over rgba()) on 50% visibility.
With hovering this link i would like to change visibility property on 100% by both elements.
Problem is: in canvas i need to change background-color. With that text inside link i need change color. link looks like:
<a href="" class="table_link">
<canvas class="canvas_table_item"></canvas>
Chair
</a>
if i put both in 1 selector:
.content_table *:hover{
color:rgba(255, 255, 255, 1);
background-color:rgba(255, 255, 255, 1);
}
it change the background color of the text (link) as well.. I need change background-color ONLY on the canvas and color on the text (it can be changed on canvas as well). Is there way how to achieve that only with CSS or do i realy need to use javascript?
ANSWER IN HERE: DEMO
SOLUTION IS ADD AND INSIDE THIS THE LINK TEXT LIKE IN HERE:
<a href="" class="table_link">
<canvas class="canvas_table_item"></canvas>
<span>
Chair
</span>
</a>