We would like to know how to hover to change li item border.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.mbutton a {<!--from w w w . jav a 2 s. c o m-->
display: block;
margin: 0 3px;
padding: 11px 20px 9px 20px;
border: 1px solid #fff;
}
.mbutton a:hover {
border: 1px solid #000;
}
.mbutton .currentnav {
border: 1px solid #e82c3d;
}
</style>
</head>
<body>
<ul id="mainmenu">
<li class="mbutton"><a class="currentnav" href="#">Link 1</a></li>
<li class="mbutton"><a href="#">Link 2</a></li>
<li class="mbutton"><a href="#">Link 3</a></li>
</ul>
</body>
</html>
The code above is rendered as follows: