We would like to know how to create two arrows on top of each other.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
p {<!-- w w w. ja v a 2 s .c o m-->
display: inline-block;
margin: 0;
}
.addbutton {
position: absolute; /* magic */
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid black;
display: inline-block;
}
.minbutton {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid black;
display: inline-block;
}
</style>
</head>
<body>
<p>1</p>
<div class="addbutton"></div>
<div class="minbutton"></div>
</body>
</html>
The code above is rendered as follows: