We would like to know how to hover to add border bottom.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- w w w .j a va2s.co m-->
width: 100px;
height: 100px;
background: #eee;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
div:hover {
width: 100px;
height: 100px;
background: #eee;
border-bottom: 1px solid;
}
</style>
</head>
<body>
<div>test</div>
</body>
</html>
The code above is rendered as follows: