"social icon border right using after bg or border"
Bootstrap 4.1.1 Snippet by soumen

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous"> <div class="container"> <ul class="list-inline parent_bar_right social_icon"> <li class="list-inline-item"> <a href="#" class=" "><i class="fab fa-facebook-f "></i></a></li> <li class="list-inline-item"> <a href="#" class=" "><i class="fab fa-instagram "></i></a></li> <li class="list-inline-item"> <a href="#" class=" "><i class="fab fa-pinterest-p "></i></a></li> <li class="list-inline-item"> <a href="#" class=" "><i class="fab fa-twitter"></i></a></li> </ul> </div>
.social_icon li { position: relative; padding: 15px 0px 15px 20px; } .social_icon li:not(:first-child):before { content: ''; position: absolute; top: 16px; color: #00ffff; left: 1px; font-size: 15px; border-right: 1px solid #1aff00; background: red; height: 20px; width: 2px; }

Related: See More


Questions / Comments: