We would like to know how to move border from left to right.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from w w w .java 2 s. c om-->
width: 100px;
height: 100px;
background-color: orange;
}
#div1 {
border-left: 2px solid red;
}
#div1:hover {
border-left: 0;
border-right: 2px solid red;
}
</style>
</head>
<body>
<div id="div1"></div>
</body>
</html>
The code above is rendered as follows: