We would like to know how to add border to li item when hover.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
li {<!--from ww w.ja v a 2 s .co m-->
diplay: block;
float: left;
margin: 5px;
padding: 6px;
}
li:hover {
padding: 5px;
border: 1px solid #000000;
}
</style>
</head>
<body>
<ul>
<li>One button</li>
<li>Two buttons</li>
<li>Three buttons!</li>
</ul>
</body>
</html>
The code above is rendered as follows: