<head>
<style>
.hover-effect {
background-color: darkblue;
color: white;
padding: 10px;
margin: 5px;
text-align: center;
}
.hover-effect:hover {
background-color: darkblue;
color: white;
}
</style>
</head>
<body>
<div class="hover-effect">Hover over me!</div>
</body>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.