We would like to know how to create border right that shorter than div height.
<!-- ww w . ja v a 2s . c om-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {
height: 20px;
background-color: red;
margin: 0 10px;
padding: 10px;
display: inline-block;
}
div:after {
content: "|";
color: black;
}
</style>
</head>
<body>
<div>1</div>
<div>2</div>
<div>3</div>
</body>
</html>
The code above is rendered as follows: