Answers for "css inline hover"

CSS
21

css hover

.a:hover{background-color: black;}
Posted by: Guest on February-20-2020
2

how to apply hover through inline css

document.getElementById("mydiv").onmouseover= function(e){this.className += ' my-special-class'; };
document.getElementById("mydiv").onmouseleave= function(e){this.className = this.className.replace('my-special-class',''); };
Posted by: Guest on October-20-2020
0

css inline hover

.hover-item {
	background-color: #FFF;
}

.hover-item:hover {
	background-color: inherit;
}
<a style="background-color: red;">
	<div class="hover-item">
		Content
	</div>
</a
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language