Hello. Please tell me, how in this case is it possible to centralize the prev_arrow and next_arrow arrow horizontally inside the prev_history and next_history elements? Tried display: table; margin: 0 auto; , but something does not work ... Tell me how to be in this case. thank
<style> .prev_history{float:left;left:0;position:fixed;display:block;height:100%;width:6%;opacity:0} .next_history{float:right;right:0;position:fixed;display:block;height:100%;width:6%;opacity:0} .prev_history:hover,.next_history:hover{background:#ececef;opacity:1} .prev_arrow{float:left;top:40%;left:0;border-top:25px solid transparent;border-right:50px solid #4c4e5a;border-bottom:25px solid transparent;position:fixed;} .next_arrow{float:right;top:40%;right:0;border-top:25px solid transparent;border-left:50px solid #4c4e5a;border-bottom:25px solid transparent;position:fixed} </style> <div class="prev_history" onclick="javascript:history.back();"> <span class="prev_arrow"></span> </div> <div class="next_history" onclick="javascript:history.forward();"> <span class="next_arrow"></span> </div>