I have a created a timeline of milestones that each have a circular image (border-radius: 100%). I am giving a css arrow to each .milestone-image-holder element using the :before and :after pseudo elements. I would like to give an arrow to top and bottom of the element, but it seems that I can only do top or bottom, not top and bottom (two css arrows).
Here is my HTML:
<ul class="milestones">
<li class="milestone-left">
<div class="milestone-img-holder">
<img src="/assets/images/page/about-us/our-history/timeline_2011.jpg" />
</div>
<h5>2011</h5>
<p>
Sample text
</p>
</li>
</ul>
CSS:
ul.milestones li.milestone-left .milestone-img-holder {
position: relative;
margin-left: -80px;
float: left;
}
ul.milestones li.milestone-right .milestone-img-holder {
position: relative;
margin-right: -80px;
float: right;
}
ul.milestones .milestone-img-holder:after, ul.milestones .milestone-img-holder:before {
bottom: 98%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
ul.milestones .milestone-img-holder:after {
border-color: rgba(238, 59, 52, 0);
border-bottom-color: #EE3B34;
border-width: 3px;
margin-left: -3px;
}
ul.milestones .milestone-img-holder:before {
border-color: rgba(238, 59, 52, 0);
border-bottom-color: #EE3B34;
border-width: 9px;
margin-left: -9px;
}
ul.milestones img {
position: relative;
width: 10em;
-webkit-border-radius: 100%;
border-radius: 100%;
border: 3px solid #ee3b34;
background: #CCC;
}
That css will add an css arrow to the top, and changing bottom: 99% to top: 99%, and border-bottom-color: #ee3b34 to border-top-color: #ee3b34 will add the arrow to the bottom, but I cannot have both arrows at the same time. Is it possible?

img-holder:afterandimg-holder:beforeare using the same values in your css. you must give different values for:before, like:bottom:0%;and switch borders to be down arrow