For my latest project, I used Bootstrap to create a template that adapts well to different device breakpoints. Everything is working smoothly except for the positioning of the arrows on the sides of the image. I want them to be centered halfway down the page on all devices. In this post, I highlighted the columns in yellow for extra emphasis, but they don't need to be equal in size. I've attempted using padding, margins, and other CSS properties, but I can't seem to achieve the desired result. Any suggestions or tips would be greatly appreciated. Thank you in advance!
<style>
body{padding: 0 10px;}
[class*="col-"] {
padding: 1em 0;
background-color: rgba(255,204,51,1);
border: 1px solid rgba(204,204,102,1);
}
.container img {
max-height:100%;
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
<head>
<body>
<div class="container">
<div class="row">
<div class=" col-lg-2 col-md-2 col-sm-1 col-xs-1">
<span class="visible-lg"><a href="#"><img src="images/leftArrow.png"></a></span>
<span class="visible-md"><a href="#"><img src="images/leftArrow.png"></a></span>
<span class="visible-sm"><a href="#"><img src="images/leftArrow.png"></a></span>
<span class="visible-xs"><a href="#"><img src="images/leftArrow.png"></a></span>
</div><!--left arrow-->
<div class="col-lg-8 col-md-8 col-sm-10 col-xs-10">
<span class="visible-lg"><img src="images/carton-house.jpg" alt="Fashion" class="img-responsive"></span>
<span class="visible-md"><img src="images/carton-house.jpg" class="img-responsive" alt="fashion"></span>
<span class="visible-sm"><img src="images/carton-house.jpg" class="img-responsive" alt="fashion"></span>
<span class="visible-xs"><img src="images/carton-house.jpg" class="img-responsive" alt="fashion"></span>
</div><!--Image-->
<div class="col-lg-2 col-md-2 col-sm-1 col-xs-1">
<span class="visible-lg"><a href="#"><img src="images/rightArrow.png"></a></span>
<span class="visible-md"><a href="#"><img src="images/rightArrow.png"></a></span>
<span class="visible-sm"><a href="#"><img src="images/rightArrow.png"></a></span>
<span class="visible-xs"><a href="#"><img src="images/rightArrow.png"></a></span>
</div><!--right arrow-->
</div> <!--row-->
</div><!--container-->