How to set style for all elements which are currently hovered using CSS ONLY
For example:*:hover{ color:red }
How to set style for all elements which are currently hovered using CSS ONLY
For example:*:hover{ color:red }
Hello manasan3010, welcome to the forum!
Your code… actually works just the way it is! That will set the color
of each element that is hovered to red.
Please note, color
is not the same as background-color
, if that is the problem you are having. color
will set the color of the text in the element.
EDIT:
Check out this example: