Edit This Code:
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lib/w3.css">
<body>

<div class="w3-container">
  <h2>Pagination Hover Color</h2>
  <p>Move the mouse over the pagination links.</p>
  <p>By default, when you move the mouse over the pagination links, they get a grey background color. Use any of the w3-hover-color classes to change the hover color:</p>

  <ul class="w3-pagination">
    <li><a href="tryit.asp-filename=tryw3css_pagination_hover.html#" class="w3-hover-purple">«</a></li>
    <li><a href="tryit.asp-filename=tryw3css_pagination_hover.html#" class="w3-hover-green">1</a></li>
    <li><a href="tryit.asp-filename=tryw3css_pagination_hover.html#" class="w3-hover-red">2</a></li>
    <li><a href="tryit.asp-filename=tryw3css_pagination_hover.html#" class="w3-hover-blue">3</a></li>
    <li><a href="tryit.asp-filename=tryw3css_pagination_hover.html#" class="w3-hover-black">4</a></li>
    <li><a href="tryit.asp-filename=tryw3css_pagination_hover.html#" class="w3-hover-orange">»</a></li>
  </ul>
</div>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy