I’d like to put arrows between these four section boxes as shown in my picture below. Currently I have the below boxes (codepen here)
I’ve added the following html between the boxes, but it does not produce the effect im going for since it moves all the arrows to one side
<i class="glyphicon glyphicon-arrow-right"></i>
See below for my code:
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<title></title>
<style>
.ibox {
border-style: solid;
border-color: black;
}
</style>
</head>
<body>
<div class='container'>
<div class="row">
<div class="col-md-3">
<div class='ibox'>
<h2>Safari bug warning!</h2>
<p class="text-danger">As of v9.1.2, Safari exhibits a bug in which resizing your browser horizontally causes rendering errors in the justified nav that are cleared upon refreshing.</p>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div>
</div>
<i class="glyphicon glyphicon-arrow-right"></i>
<div class="col-md-3">
<div class='ibox'>
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div>
</div>
<i class="glyphicon glyphicon-arrow-right"></i>
<div class="col-md-3">
<div class='ibox'>
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.</p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div>
</div>
<i class="glyphicon glyphicon-arrow-right"></i>
<div class="col-md-3">
<div class='ibox'>
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.</p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
This is what I’d like the end result to look like where the arrows are between the section boxes
2
Answers
Unfortunately, bootstrap doesn’t seem to be doing you many favors here. Basically the font awesome icons should be in the
.col-md-3
divs and then you can add a class to make thosedisplay:flex
and get rid of the default padding.Codepen
I have created a code pen with your code, without the i tag, i have added icons on the pseudo-element(:after), then hiding from the last item, you might have to remove them in the small screen view. Check if this helps you
CodePen here
To hide the arrows in small screens, you can use media queries, see below
This will hide the arrows in all the screens under 991 pixels.