Use this below code to achieve your need
<!DOCTYPE html>
<html>
<head>
<title>Position</title>
<style type="text/css">
#tab_position_1 {
width: 20px;
height: 100px;
position: fixed;
background: #999999;
cursor: pointer;
color: white;
right:0;
top: calc(50% + 100px);
z-index: 4;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
#tab_position_2 {
width: 20px;
height: 100px;
position: fixed;
background: #999999;
cursor: pointer;
color: white;
right:0;
top: calc(50% + 200px);
z-index: 4;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
#tab_position_3 {
width: 20px;
height: 100px;
position: fixed;
background: #999999;
cursor: pointer;
color: white;
right:0;
top: calc(50% - 100px);
z-index: 4;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
#tab_position_4 {
width: 20px;
height: 100px;
position: fixed;
background: #999999;
cursor: pointer;
color: white;
right:0;
top: calc(50% - 200px);
z-index: 4;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
</style>
</head>
<body>
<div id="tab_position_1"></div>
<div id="tab_position_2"></div>
<div id="tab_position_3"></div>
<div id="tab_position_4"></div>
</body>
</html>